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

Problems while implementing Content Security Policy #1085

Open BrodaNoel opened 2 years ago

BrodaNoel commented 2 years ago

Hello everyone!

I'm trying to implement CSP but I have some issues with Google Maps in this library. https://developers.google.com/maps/documentation/javascript/content-security-policy

The point is that I already added all the Google Domains, but I can't add the nonce for the inline-styles that Google Maps creates, so, all the buttons in the map gets duplicated because clearly some inline CSS get broken.

Any of you had any problem with this?

If you don't know what I'm talking about, do this:

There you are going to see some broken buttons.

JustFly1984 commented 2 years ago

@BrodaNoel This package is unmaintained 4+ years. please look at @react-google-maps/api instead. As I know we have solved an issue. It is not a drop-in replacement, please read docs.