Kucoin / kucoin-api-docs

KuCoin API Docs
Other
272 stars 147 forks source link

cors problem from clientside #352

Open se8820726 opened 2 years ago

se8820726 commented 2 years ago

if I request to any of the rest api urls from browser (client side) , I give cors error because lack of cors headers in response

why dont you put cors headers in rest api responses ?

jpwall commented 2 years ago

I'm having the same issue. Tested in Firefox, Chromium, and Brave on Linux. KC_API_axios_error (Above) error from axios in React. I am getting a response when using curl as hoped, but not expected. I am connected to the internet despite "Error: Network Error" in the JavaScript console.

progressivehed commented 2 years ago

Hello

For most GET requests, it will work from browser URL.

For POST requests, you should do authentication and provide headers. It is more easier using a programming language like Python.

For more information please refere to main API TELEGRAM GROUP and state your issue there to get guide from Admins there.

Also you can refer to API Learning Center Channel

And also always check Notification Channel

zigazajc007 commented 2 years ago

All public API endpoints should provide "Access-Control-Allow-Origin: *" in the header.

hills2003 commented 1 year ago

issue still persist for me,i am using kucoin sandbox api