-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add Cache Headers as permitted headers for CORS preflight: Fix issue #5354 #5396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5396 +/- ##
==========================================
- Coverage 94% 93.93% -0.07%
==========================================
Files 127 127
Lines 9091 9091
==========================================
- Hits 8546 8540 -6
- Misses 545 551 +6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my notes on the issue: #5354
I think that the proposed change is likely fine, but in thinking about this, I am now concerned about parse-server/src/middlewares.js Lines 282 to 299 in 0bf551f
which allows * host to send authentication headers like master key and session id. the fetch discussion I've been reading for context on this pr suggests that * for allowed hosts should not be permitted with authentication. Next step for me is to try and set up some tests to help me wrap my head around how this particular cors function would operate in real life. Any help would be greatly appreciated. |
I'd like to get this merged in. I have a concern around the * in the Access-Control-Allow-Origin given the authentication headers that are allowed; however, this change does not make that worse. I'd like to get this merged in and would appreciate another set of eyes from the community to take a look at it and think it through. |
No description provided.