Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems while implementing Content Security Policy #1085

Open
BrodaNoel opened this issue Apr 11, 2022 · 1 comment
Open

Problems while implementing Content Security Policy #1085

BrodaNoel opened this issue Apr 11, 2022 · 1 comment

Comments

@BrodaNoel
Copy link

BrodaNoel commented Apr 11, 2022

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:

  • Open https://snyk.io/website-scanner/
  • Scan your website
  • Check if you have a Content Security Policy problem
  • Try to fix it.
  • Open your page where you have the Map

There you are going to see some broken buttons.

@JustFly1984
Copy link

@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.

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

No branches or pull requests

2 participants