laravel-secureheaders
laravel-secureheaders copied to clipboard
Singleton Nonce functionality
Add functionality that allows for usage of a nonce for inline JS
What is this for? Is there an article or white paper you could link to?
See PR #24
Yeah seen that 😉
I mean why does this need to be part of this package? Can you flesh out the issue a little more please, thanks.
They're for using inline scripts with CSP, or more recently assigning trust to a script that can load other scripts (in combination with 'strict-dynamic'
).
https://scotthelme.co.uk/csp-cheat-sheet/#nonces https://github.com/aidantwoods/SecureHeaders/wiki/cspNonce
Would love to see this feature too, possible based on the work aidan did in his package which seems really well done