CSP nonce injection
Turn an unprotected HTML origin into a response with one fresh, matching nonce across every eligible script.
A single index for six F5 edge-processing patterns implemented on Cloudflare Workers. Each use case makes the normal origin and the fixed capability independently observable.
Every scenario follows the same observable before / after shape while keeping its policy and state local to the owning Worker.
Durable Objects provide strong, scoped state for S4 coordination, S5 session vaults, and S6 remediation. Web Crypto backs nonce, AES-GCM, and HMAC operations. Numeric performance results are MEASURE-NOT-CLAIM observations, never platform guarantees.
Open the demo for a guided view, compare the origin and Worker directly, or jump to the detailed criteria and architecture below.
Turn an unprotected HTML origin into a response with one fresh, matching nonce across every eligible script.
Transform a roughly 10 MB report in flight without buffering the document or losing progressive delivery.
Use native client identity and structural data policy to sanitize JSON while leaving opaque payloads untouched.
Keep parallel HTML and JavaScript requests on one durable rewrite plan so the original version never escapes.
Hide weak origin session cookies behind an opaque, authenticated browser token and a per-session Durable Object.
Intercept a breached-but-valid login and guide the user through an OTP-gated, origin-authoritative password change.
Each detail block summarizes what must be true and the implementation boundary that achieves it.
Turn an unprotected HTML origin into a response with one fresh, matching nonce across every eligible script.
Transform a roughly 10 MB report in flight without buffering the document or losing progressive delivery.
Use native client identity and structural data policy to sanitize JSON while leaving opaque payloads untouched.
Keep parallel HTML and JavaScript requests on one durable rewrite plan so the original version never escapes.
Hide weak origin session cookies behind an opaque, authenticated browser token and a per-session Durable Object.
Intercept a breached-but-valid login and guide the user through an OTP-gated, origin-authoritative password change.