More fine grain control over when to allow hashes and nonces
Pre-release
Pre-release
·
80 commits
to master
since this release
A new breaking changes has been introduced into this version of the CspHtmlWebpackPlugin:
devAllowUnsafehas been removed, and has been replaced with 2 object configurations:hashEnabledandnonceEnabled.- These 2 objects accept
<string, boolean>entries of a policy name, and whether that policy should include hashes or nonces.
- These 2 objects accept
By setting all hashes and nonces to false for script-src and style-src, this should act in the same was as setting the now removed devAllowUnsafe to true