Hexret

Web Security · Client-side

CSP nonce

Also known as: Content Security Policy nonce

An unpredictable value in a Content Security Policy and a matching script or style element attribute. The browser can allow that element when the values match. Reusing or exposing the value lets injected elements claim the same permission. Generate a fresh value for each transmitted policy.

Where you practice it

Related terms