axisbits / covid-api

API based on publicly available data by Johns Hopkins CSSE
20 stars 0 forks source link

Access-Control-Allow-Origin cors errors #16

Open ahmedfaaid opened 2 years ago

ahmedfaaid commented 2 years ago

I seem to be running into cors errors anytime I try to access the api from localhost or from my deployed application.

Here is the error I run into: Access to XMLHttpRequest at 'https://covid-api.com/api/reports' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

It was working well up until recently. How may I get around this?