fireclint / defi-react-api

18 stars 17 forks source link

Error while calling coingeko API #1

Open Jayrajrodage opened 1 year ago

Jayrajrodage commented 1 year ago

This error is in https://github.com/fireclint/defi-react-api/blob/568322d79804977dcb66f4b1e36d1aaa788e97ed/src/components/Featured.js

error -: Access to XMLHttpRequest at 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=10&page=1&sparkline=false&locale=en' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested

Please explain me how to resolve this issue

Ant1ne commented 9 months ago

Hi! I have faced the same error, it seems to be due to a connection error. After few minutes, it stopped showing up. I hope your error is resolved by now!

Cheers!