Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138192

I'm getting the network response, but CORS is not allowing it to enter

$
0
0

I'm doing an API get request via axios to an Exchange Rates API

axios.get('https://api.exchangerate-api.com/v4/latest/USD').then(res=>console.log('res',res)).catch(err => console.log('err',err))

And I'm getting the correct answer in the networkResponse of the API request

But this is what shows on in my console for de ERR of the get request console

I've researched that CORS message and all they say is, that you have to configure your server to accept the authorization header, but thats not an API to my server, it's a third party's server

What can I do?


Viewing all articles
Browse latest Browse all 138192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>