Play 22: Nonce Dive
CSP
Blocks Injected script (XSS)
A fresh nonce on every response, plus strict-dynamic. A script without the nonce does not run, and there is no 'unsafe-inline' or 'unsafe-eval' to sneak through.
script-src 'self' 'nonce-…' 'strict-dynamic'
New nonce every snap.