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

Failed to load http://127.0.0.1:8888/v1/chain/get_code: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. #2

Open
yangjm20 opened this issue May 12, 2018 · 2 comments

Comments

@yangjm20
Copy link

Failed to load http://127.0.0.1:8888/v1/chain/get_code: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. If an opaque
response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
apigen.js:118 api error => http://127.0.0.1:8888/v1/chain/get_code {"account_name":"ping.ctr"} TypeError: Failed to fetch

@BenHigh5
Copy link

I think you need to set your headers in your eos config file (config.ini) to allow all (or specified ips).

access-control-allow-origin = *

@msj121
Copy link

msj121 commented Jul 5, 2018

Also make sure you look for your config.ini file is the right one. I was trying one found in ~/Documents/eos-wallet

For MacOS
But you should actually be looking: ~/Library/Application\ Support/eosio/nodeos/config/config.ini

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

3 participants