tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.62k stars 939 forks source link

OverlayView : CORS : Issue #1063

Closed satejrajam30 closed 3 years ago

satejrajam30 commented 3 years ago

As soon as I use the imported component OverlayView I start getting cors errors. Am I missing something here? I tried searching for solutions but still haven't found anything.

Is this a bug or anybody here facing the same issue?

Error:

Access to fetch at 'https://maps.googleapis.com/maps-api-v3/api/js/42/9/map.js' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.