简体   繁体   中英

react-map-gl Cross-Origin Request does not succeed, not found?

I'm setting up a map in react-map-gl however after providing my access token I am getting the following console error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://events.mapbox.com/events/v2?access_token=TOKEN. (Reason: CORS request did not succeed). Status code: (null).

I had installed react-map-gl with

npm install --save react-map-gl mapbox-gl

Now i look at it, it seems to not be working on any service that uses Mapbox, including the samples page.

Any ideas?

Thanks!

I disabled my Adguard DNS and it worked on my project.

I have checked a few similar errors and disabling it loads the project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM