Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. #507

Open
bluprince13 opened this issue Aug 15, 2021 · 5 comments

Comments

@bluprince13
Copy link

Access to XMLHttpRequest at 'https://api.covid19india.org/data.json' from origin 'https://bluprince13.static.observableusercontent.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Started getting this error yesterday.

My code:

indiaCovidRaw = axios.get("https://api.covid19india.org/data.json")
@yogesh7401
Copy link

Use

indiaCovidRaw = axios.get("https://data.covid19india.org/data.json")

@bluprince13
Copy link
Author

@yogesh7401 that does work.

Why are there two separate points? Reckon this should be in the readme?

@yogesh7401
Copy link

@bluprince13 Yah.. It's need to be Updated in docs and readme.

@Sashank-Deb
Copy link

Sashank-Deb commented Aug 15, 2021

@bluprince13 Yah.. It's need to be Updated in docs and readme.

Thanks man was trying to figure this out since yesterday.

@Sashank-Deb
Copy link

I had the same issue
kindly update it in the documentation otherwise many people will run into the same issue.

New end point: 'https://data.covid19india.org/data.json'
Old end Point: 'https://api.covid19india.org/data.json'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants