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

set headers on all methods to support e.g. CORS #499

Merged
merged 1 commit into from
Jun 6, 2016

Conversation

davidreher
Copy link
Contributor

Hey @sokra,

currently the headers are only set on GET responses. It would be great to also set them on at least OPTIONS as well to support e.g. CORS. My solution is to set headers on all methods supported by express.

Please also backport this to 1.x

cc: @Mischi

@sokra
Copy link
Member

sokra commented Jun 6, 2016

Thanks

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

2 participants