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

Document __webpack_nonce__ #1802

Closed
quantizor opened this issue Jan 26, 2018 · 0 comments
Closed

Document __webpack_nonce__ #1802

quantizor opened this issue Jan 26, 2018 · 0 comments

Comments

@quantizor
Copy link

There's a clever bit of functionality built into webpack for Content Security Policy purposes, enabled via __webpack_nonce__. It'd be great to formally document it and give examples for why it's useful.

https://github.com/webpack/webpack/blob/ab2270263e9af5b0dd83e454c20ab3aa1797424a/lib/APIPlugin.js#L26

https://stackoverflow.com/questions/42922784/what-s-the-purpose-of-the-html-nonce-attribute-for-script-and-style-elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants