@vis.gl/react-google-maps using new domain 'https://mapsresources-pa.googleapis.com' which is different from official one https://maps.googleapis.com #731
-
We have integrated Google Maps into our React application using the @vis.gl/react-google-maps package. Our Content Security Policy (CSP) is configured according to Google's documentation, specifically whitelisting maps.googleapis.com. We did not make any changes to our application or upgrade any related packages. However, we recently encountered an issue where Google Maps stopped rendering due to the following CSP error:
After updating our CSP policy to include "https://mapresources-pa.googleapis.com/", the issue was resolved. However, we would like to understand why this change was necessary and this domain is not mentioned in official google docs There were no package upgrades or changes on our end. We couldn't find any release notes or documentation updates mentioning this change. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've got to say that I'm not too familiar with CSP myself, but according to the official guide here you should have a Then you seem to have an As far as the documentation on developers.google.com is concerned, that is out of scope for this library. If there are inaccuracies or misleading information, the folks at google will certainly fix it, so let them know by creating an issue here: https://issuetracker.google.com/issues?q=status:open%20componentid:188853&s=created_time:desc |
Beta Was this translation helpful? Give feedback.
Thanks for the quick response.
it was error due to wrong mapId. Not issue with google API