Concepts
CSP nonce contract
Match an unpredictable server-generated response nonce with explicitly trusted script elements. The example examines only fixture metadata, not nonce generation or network delivery.
Formal Syntax & Structure
javascript syntaxjavascript
script-src 'nonce-<per-response-value>'Working Example
Example Snippetjavascript
(async () => {const script=document.createElement("script");script.nonce="fixture-only";console.log(script.nonce,script.nonce==="other-response");})()