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

check if cors is used #185

Merged
merged 2 commits into from Jul 3, 2020
Merged

check if cors is used #185

merged 2 commits into from Jul 3, 2020

Conversation

stepansnigirev
Copy link
Collaborator

@stepansnigirev stepansnigirev commented Jul 2, 2020

At the moment we are always assuming that CORS is used for HWI bridge.
It causes problems when people are using /hwi/apion the same domain, but this domain is not localhost.
This PR checks if it's same origin or not by comparing HTTP_HOST against HTTP_ORIGIN.

Closes #183

@stepansnigirev stepansnigirev merged commit 2a1f872 into cryptoadvance:master Jul 3, 2020
@stepansnigirev stepansnigirev deleted the fix-same-origin branch July 3, 2020 16:08
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.

always allow same-origin for HWI bridge
2 participants