Skip to content

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

Merged
elithrar merged 1 commit into
gorilla:masterfrom
ejcx:ej/fix-acao
Nov 1, 2017
Merged

elithrar merged 1 commit into
gorilla:masterfrom
ejcx:ej/fix-acao

Conversation

@ejcx

@ejcx ejcx commented Nov 1, 2017

Copy link
Copy Markdown
Contributor

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

elithrar commented Nov 1, 2017

Copy link
Copy Markdown
Contributor

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

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

elithrar commented Nov 1, 2017

Copy link
Copy Markdown
Contributor

@ejcx

ejcx commented Nov 2, 2017

Copy link
Copy Markdown
Contributor Author

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