What does a CSP do?
Content-Security-Policy tells browsers which scripts, styles, images, and frames a page may load. Misconfigured policies with 'unsafe-inline', 'unsafe-eval', or * wildcards re-open XSS paths.
Paste a header to score risky directives, or build a cleaner policy string with per-directive controls.
How to use this tool
- Evaluate: paste your CSP header and review critical/warn findings.
- Builder: toggle directives and copy the assembled header value.
- Deploy via Content-Security-Policy HTTP header or meta http-equiv (header preferred).
Frequently asked questions
Is this a full CSP validator?
It highlights common dangerous tokens and missing hardening directives. Always test policies in staging browsers — report-only mode helps.