-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: set headers for CORS #9437
base: develop
Are you sure you want to change the base?
Conversation
If a dev creates an new Response in a controller, the CORS header will not be added. |
Fair point. |
Second approach. I don't know if we should go into more detail about checking the required headers, but this seems enough. Basically, we now add CORS headers in the |
Description
This PR fixes a bug where CORS was not set correctly due to the response object being returned in the
before
filter.Now all CORS headers are set in thebefore
filter, and theafter
filter is no longer used.This change should not break anyone's code.
Fixes #9431
Checklist: