CSP checker
Paste a Content-Security-Policy header to review directives, unsafe script settings and missing restrictions. Private local analysis without a website scan.
CSP checker: Analyze Content Security Policy directives.
Open the interactive browser tool to process your files or values. Public page descriptions are readable without JavaScript; browser-only file operations are not remote REST APIs.
Frequently asked questions
What does the CSP checker inspect?
It parses a pasted Content-Security-Policy header and highlights common risky patterns such as unsafe-eval, permissive scripts and missing restrictive directives.
Does the CSP checker scan a live website?
No. Paste the response header value from your own site. The tool does not crawl hosts or perform active security testing.
Does having no warnings mean that my CSP is secure?
No. The checks are intentionally limited and cannot model every browser behavior, nonce flow, URL path exception or application-specific embedding requirement.
Why is unsafe-eval flagged in scripts?
It permits dynamic string evaluation in some script contexts and can weaken CSP protection against script injection. Review whether the application needs it.
What is frame-ancestors used for?
The frame-ancestors directive controls which origins can embed a page, helping reduce certain clickjacking risks when deployed correctly.
Can I check a report-only Content Security Policy?
Yes. Paste the report-only header content to review its directive text; actual enforcement depends on which CSP response header your site sends.
More from Code Deb
Read about our agency, explore available services, or contact the team for a project discussion.