CSP builder
Naming one directive silently disables the rest.
A Content-Security-Policy is the header that stops an injected script from running — and the one developers get wrong most, because writing any directive quietly switches off the default-src fallback for it. Tick what your site actually loads and get a hardened, paste-ready policy that starts from default-src 'self' and only opens what you need.
- Starts from a strict floor
- Graded by the live /csp rules
- Paste-ready header
- Free, no account
Programmatic: /api/csp-builder?svc=ga&svc=gfonts&… returns {csp, ready, findings} — build the header in a script or CI. Already serve a CSP? Grade it instead.