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

Allows setting nonce on generated style tags #2

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

Conversation

swaff
Copy link

@swaff swaff commented Sep 25, 2018

Uses a feature of webpack to extract a set nonce value on the generated
style tags to allow users to maintain a Content Security Policy that
does not need to use unsafe-inline for the styles.

Updates the makeStyleTag function to optionally add the nonce
attribute if the __webpack_nonce__ value is set.

Adds documentation of the feature at docs/nonce.md

Uses a feature of webpack to extract a set nonce value on the generated
style tags to allow users to maintain a Content Security Policy that
does not need to use `unsafe-inline` for the styles.

Updates the `makeStyleTag` function to optionally add the `nonce`
attribute if the `__webpack_nonce__` value is set.

Adds documentation of the feature at docs/nonce.md
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.

1 participant