Closed riklewis closed 6 years ago
@riklewis I believe you can utliize https://github.com/popeindustries/inline-source#custom-handlers for that. Use something like https://nodejs.org/api/crypto.html to compute checksum and then set your custom source.replace
with the attribute in the handler.
It would be really handy when inlining javascript and styles for the CSP SHA256 hash to be generated and added as an attribute automatically.
For more information, look here... https://scotthelme.co.uk/csp-cheat-sheet/#hashes