More fine grain control over when to allow hashes and nonces
Pre-release
Pre-release
AnujRNair
released this
03 Jan 21:33
·
79 commits
to master
since this release
A new breaking changes has been introduced into this version of the CspHtmlWebpackPlugin:
devAllowUnsafe
has been removed, and has been replaced with 2 object configurations:hashEnabled
andnonceEnabled
.- 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