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

Access-Control-Allow-Origin #17

Closed
sergocap opened this issue Jul 4, 2018 · 2 comments
Closed

Access-Control-Allow-Origin #17

sergocap opened this issue Jul 4, 2018 · 2 comments

Comments

@sergocap
Copy link

sergocap commented Jul 4, 2018

with curl http://example.compute.amazonaws.com:19036 i get answer ....
But with axios or fetch have problem
Failed to load http://example.compute.amazonaws.com:19036/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.
blockbook have any options for resolve it?

@martinboehm
Copy link
Contributor

Yes, we do not set the header in blockbook. We run our production blockbook servers behind nginx, where we would set the header if needed.

@sergocap
Copy link
Author

sergocap commented Jul 6, 2018

with add_header Access-Control-Allow-Origin *; all good. thanks

@sergocap sergocap closed this as completed Jul 6, 2018
@sergocap sergocap reopened this Jul 6, 2018
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

No branches or pull requests

2 participants