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

only send Access-Control-Allow-Methods on option calls #1

Merged
merged 1 commit into from
Mar 12, 2013
Merged

only send Access-Control-Allow-Methods on option calls #1

merged 1 commit into from
Mar 12, 2013

Conversation

damienklinnert
Copy link
Contributor

When reading the CORS spec I recognized that all those additional headers should only be send on options requests.

http://www.html5rocks.com/en/tutorials/cors/

troygoode added a commit that referenced this pull request Mar 12, 2013
only send Access-Control-Allow-Methods on option calls
@troygoode troygoode merged commit 9dd38f5 into expressjs:master Mar 12, 2013
@troygoode
Copy link
Member

published as part of v0.0.5

@troygoode
Copy link
Member

some other headers had to be moved as well after reading through the actual spec: http://www.w3.org/TR/cors/

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