Hello guys i am new in crypto and the binance api and i really need your help, i am trying to make a simple react project to track my wallet.
but while i try to fetch my orders i get a cors policy error.
the request i try is GET /api/v3/allOrders
with fetch javascript api like a so :
fetch(${url}/api/v3/myTrades?symbol=ADAUSDT
, {‘headers’: {‘X-MBX-APIKEY’: “MY_API_KEY_HERE”}})
.then((res)=> {
console.log(res)
})
.catch( (err) => {
console.log(err)
})
Hi, You have to config the “setupProxy.js” file to enable the path rewrite if it is handled by create-react-app. Also, please avoid asking programming questions here since this is for API discussion, thanks.