Can't fetch API because of CORS policy
Closed this issue · 3 comments
TravnikovDev commented
Access to fetch at 'https://www.binance.com/exchange-api/v1/public/asset-service/product/get-products' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Should I mock API calls?
big-duke commented
Hello !
I guess you should consider use local node.js + express
app.get('/binance', function(req,res){
request.get({'https://www.binance.com/exchange-api/v1/public/asset-service/product/get-products'', .....
big-duke commented
Hello, I don't know because I'm not affiliate with this company. I suggested the workaround only.
ps
I find this position in the LinkedIn.
HTH