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

Don't return the origin header when configured to * #116

Merged
merged 1 commit into from
Nov 1, 2017
Merged

Don't return the origin header when configured to * #116

merged 1 commit into from
Nov 1, 2017

Conversation

ejcx
Copy link
Contributor

@ejcx ejcx commented Nov 1, 2017

There's no reason to allow for a server to reflect all origin headers.
This has caused numerous security problems in the past.

Some helpful blog posts on the topic:

There's no reason to allow for a server to reflect all origin headers.
This has caused numerous security problems in the past.
 - cyu/rack-cors#126
 - https://nodesecurity.io/advisories/148
 - captncraig/cors@cc1cf75

Some helpful blog posts on the topic:
 - https://ejj.io/misconfigured-cors/
 - http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html
@elithrar
Copy link
Contributor

elithrar commented Nov 1, 2017

Thanks for raising this Evan - appreciate it. Agree with the assessment.

@elithrar elithrar merged commit 9066371 into gorilla:master Nov 1, 2017
@elithrar
Copy link
Contributor

elithrar commented Nov 1, 2017

Tagged v1.3.0 with this https://github.com/gorilla/handlers/releases/tag/v1.3.0

@ejcx
Copy link
Contributor Author

ejcx commented Nov 2, 2017

Woot!

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

Successfully merging this pull request may close these issues.

2 participants