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

CORS issue #52

Closed
bishwash-devops opened this issue Jan 12, 2018 · 2 comments
Closed

CORS issue #52

bishwash-devops opened this issue Jan 12, 2018 · 2 comments

Comments

@bishwash-devops
Copy link

I am getting:
Failed to load https://api.binance.com/api/v1/ticker/allPrices: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' 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.

When trying to use the API withing angular2 service.

this.binance.binance.prices(function(ticker){
console.log("prices()", ticker);
console.log("Price of BNB: ", ticker.BNBBTC);
});

Please suggest. Thanks

@jaggedsoft
Copy link
Owner

No API's currently support being used in the browser or plugins. Sorry
Must wrap them through your own server side data collection

@bishwash-devops
Copy link
Author

bishwash-devops commented Jan 12, 2018 via email

jaggedsoft pushed a commit that referenced this issue Jan 19, 2018
Fixed error handling on cancelOrders
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