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] Pass a nonce via query string #1308

Open
CheloXL opened this issue Aug 2, 2023 · 0 comments
Open

[Feature] Pass a nonce via query string #1308

CheloXL opened this issue Aug 2, 2023 · 0 comments
Labels
library Relates to an Origami library

Comments

@CheloXL
Copy link
Contributor

CheloXL commented Aug 2, 2023

Some polyfills might need to insert additional code/styles into the page (for example, the inert polyfill). Using a strict CSP (for example style-src 'self' https: 'nonce-ABC123') would mean that that specific polyfill will fail.

What I'm proposing is to add a nonce via query string and pass down that nonce to all polyfills, so they can consume it (if its present) and act accordingly (for example, adding the nonce to inline styles/js).

@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Aug 3, 2023
@github-actions github-actions bot added library Relates to an Origami library labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
library Relates to an Origami library
Projects
None yet
Development

No branches or pull requests

1 participant