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

Feature Request: Allow nonce as optional prop in analytics component for content security policy #122

Open
wkelly1 opened this issue Dec 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@wkelly1
Copy link

wkelly1 commented Dec 25, 2023

The analytics component inserts a script tag but does not allow you to specify a nonce. This means that if the script-src content security policy header is set to use a nonce then it won't be loaded.

Proposed change

It would be helpful if the analytics component could have a nonce prop which gets added to the script tag.

<Analytics nonce="8IBTHwOdqNKAWeKl7plt8g=="/>
@wkelly1 wkelly1 changed the title Allow nonce as optional prop in analytics component for content security policy Feature Request: Allow nonce as optional prop in analytics component for content security policy Dec 25, 2023
@feugy feugy added the enhancement New feature or request label Feb 21, 2024
@feugy
Copy link
Member

feugy commented Feb 21, 2024

Hello @wkelly1 and thanks for the suggestion!

I'll record this in our ticketing system.

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

No branches or pull requests

2 participants