axios.get('https://testnet.bitmex.com/api/v1/trade/bucketed?binSize=1d&partial=false&symbol=XBT&count=100&reverse=true',{
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': "GET, POST, PUT, DELETE",
'Access-Control-Allow-Headers': '*',
}})
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 403.
Вы другого более элегантных способ не знаете ?