-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Enable CORS configuration #3809
Conversation
This PR is still a WIP, but due to some large configuration PRs that are going to be merged, I will close this, and Re-Open in the future. |
I do hope you pick this back up when the timing is right. Looks promising! |
Now that the config PRs are merged, reopening this PR! |
6b70f1d
to
5dac52c
Compare
2baeff3
to
a3a5f13
Compare
Yay! Tests Passing! |
df78c9f
to
e386dd2
Compare
965b7a5
to
12a6303
Compare
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.
🎈 LGTM 🎈
f6dc661
to
63c38e6
Compare
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.
LGTM
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.
LGTM
start cors implementation
@dtomcej how allowed origins can be handled while using |
@dtomcej I also dont understand how the origin-list is supposed to work? Because there is no config option for a whitelist, the effect of "origin-list-or-null" will be the same as "*", as any domain will be allowed to send requests. Am I overlooking something? |
What does this PR do?
Enables dynamic CORS configuration, based on (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) and (https://www.w3.org/TR/cors/#access-control-allow-origin-response-header)
Motivation
Security is good. CORs are good. CORs security headers are better.
Also:
Fixes #3686
More
Additional Notes
Due to the complicated nature of CORs, I need some more eyes on this PR to see if I have handled the logic correctly...