Skip to content
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

Allow overriding the default CORS headers #700

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bartbroere
Copy link

By default the Access-Control-* response headers are very permissive. For testing this is nice, but I came across the use case to test with more restrictive headers.

I tried to do GET /response-headers?Access-Control-Allow-Origin=http://example.com, but it replied with Access-Control-Allow-Origin: *. After this PR these headers can be overridden.

@bartbroere
Copy link
Author

Even though this fixes my use case, by running tox I found out it breaks another assumption (and therefore a few tests):

  • fix responses with multiple headers

I know how to fix it, but I'm not sure if it's worthwhile to do it. The last commit on master dates back to 2018. How maintained is this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant