question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CORS w/Unsigned Endpoints

See original GitHub issue

Problem: 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jaggedsoftcommented, Jan 6, 2018

Also thank you for your kind words!

1reaction
jaggedsoftcommented, Jan 6, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found