Skip to content

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