CORS w/Unsigned Endpoints
See original GitHub issueProblem: Because of CORS and Binance’s server config, a server is currently required for accessing any endpoint. While this makes total sense for signed endpoints, its a bit overkill for unsigned endpoints (allPrices, etc).
Solution: I see that you guys are running on nginx. You can allow cross origin requests for specific endpoints:
location /api/v1/ticker/allPrices {
add_header 'Access-Control-Allow-Origin' '*';
}
This will allow people to contribute much simpler apps, widgets, etc. without having to spin up a server instance 🤘🏻
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Signature Calculations for the Authorization Header
When using the Authorization header to authenticate requests, the header value includes, among other things, a signature.
Read more >Pinpoint APIs are failing at runtime with a cors issue #792
Describe the bug. Pinpoint's update endpoint and API call is failing with the following error. // Console error
Read more >CORS is not meant to secure an API endpoint - NikoFischer.com
No! CORS is an implementation in the browser and is designed to protect the user from malicious applications by ensuring that the resource...
Read more >Access-Control-Max-Age - HTTP - MDN Web Docs
Maximum number of seconds the results can be cached, as an unsigned non-negative integer. Firefox caps this at 24 hours (86400 seconds).
Read more >Canonical requests | Cloud Storage
Canonical requests define the elements of a request that a user must include when sending V4 signature-authenticated requests, such as signed URLs, to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also thank you for your kind words!
It’s really hard to get ahold of them with the influx of new users Your best bet is probably a tech support request on their website
They closed the ability to post issues to their docs repo https://github.com/binance-exchange/binance-official-api-docs
You can also use the API telegram, but i dont know how many binance devs are in there