-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Bybit API & CORS #79
Comments
Would love to gather some of the options in one place. Primarily this comes down to how bybit's APIs are configured, as they need to include a few headers in their responses for browsers to happily make requests. These are the possible solutions that come to mind from my side:
Would be curious if for development any browser extensions can help here but I haven't tried that personally... |
Thanks! Going with the second option. Was trying to avoid setting up a server and just do some simple dev in browser but CORS is such a pain. I've gotten away with it in the past using browser extension that allow CORS but ran into some issues |
There is still an open issue regarding CORS on bybit's side: bybit-exchange/bybit-official-api-docs/issues/29. |
Yes unfortunately. Spoke to them a few times about it. Last time (few months ago) they stated they still had no plans on changing this on their side yet. Best recommendation is to keep asking them about it so they're aware of demand, while using one of the above suggestions in the meantime (unless other ideas come to mind ofc). |
Closing this but leaving it pinned for visibility. |
Announced today:
|
Apologies if this is a stupid question. I'm trying to run the bybit-api module in my browser. I'm using a CORS extension in chrome to allow CORS request from any origin but keep getting a CORS issue when I try and use the bybit-api library. I can make requests directly myself when I hit the actual bybit api manually with an axios get request in a JS script so I'm not sure why axios in bybit-api is not being allowed to make CORS requests
The text was updated successfully, but these errors were encountered: