Trunk should not generate nonces in static HTML assets #853
Labels
bug
Something isn't working
help wanted
Extra attention is needed
need info
Further information is requested
In 0.20.2, Trunk started baking
nonce
attributes into the HTML files that it generates, but the security of nonces requires that they not be re-used across multiple requests. If CSP functionality is desired, Trunk should instead generate the sha256/384/512 hashes of the contents of those tags and put them someplace those hashes can be includes in the header.(Note the insecure nature of the static nonce only matters if the html is served with a csp header that allows that nonce. If it's not then the nonce is irrelevant, but it's better not to encourage insecure practices.)
The text was updated successfully, but these errors were encountered: