-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add nonce to Partytown script for Content Security Policy #299
Comments
Hey @nicolaturcato, How did you manage to propagate the nonce to the scripts executed by Partytown? |
Hi @sigginjals , |
@nicolaturcato Once you fixed that, did the scripts get execute as expected? |
@sigginjals yes the |
Is your feature request related to a problem? Please describe.
I have a problem while trying to use Partytown React component. I have a Content Security Policy set that prevents injecting inline scripts unless they have a
nonce
. Issue that appears is: "Refused to execute inline script because it violates the following content security policy directive".In order to solve this problem I had to load the script from
@builder.io/partytown/integration
and passing thenonce
to the script.Describe the solution you'd like
Add "nonce" property to Partytown React component that needs then to be passed to Partytown script.
The text was updated successfully, but these errors were encountered: