No 'Access-Control-Allow-Origin' header is present on the requested resource. error

I am getting the cors err whenver I try to fetch an api.

When I select a currency unit, I am expected to get the currency value for that exchange unit.Instead , I get this:

Here is also the link to my code :

You can use a CORS proxy

BTW, the no API key endpoint do have endpoints for selected currency and it just defaults to USD. The latest endpoint give you back JSON with a rate property.

Here is the docs for the standard requests using a key (they have a free version as well). This endpoint might also have the CORS header (maybe).