Skip to content

fix: add nonce attribute to style tag #231

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danhuang1202
Copy link

@danhuang1202 danhuang1202 commented May 10, 2023

Get nonce attribute from __webpack_nonce__ and set this attribute to style tag

fix: #215

@danhuang1202
Copy link
Author

danhuang1202 commented May 10, 2023

Hi @Anidetrix, this PR trying to add nonce attribute to style tag, so the style-src rule in CSP can get rid of the 'unsafe-inline' value.
Please help review this PR, thanks.

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

Successfully merging this pull request may close these issues.

Is there a way to pass a style nonce property when the code injects the styles?
1 participant