You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to have a relatively secure ruleset in our CSP header, we would want to allow both script-src and inline Javascript files based on their content hashes. We might generate these hashes during build and inject them into our _headers file and in the DOM.
The text was updated successfully, but these errors were encountered:
Hugo has a built-in "fingerprint" function, which automatically generates hashes for script files.
Maybe we could use that exact same hashes for the _headers?
In order to have a relatively secure ruleset in our CSP header, we would want to allow both
script-src
andinline
Javascript files based on their content hashes. We might generate these hashes during build and inject them into our_headers
file and in the DOM.The text was updated successfully, but these errors were encountered: