Content Security Policy (CSP) Checker
Check whether a website sends a Content-Security-Policy header.
Enter a domain to check whether it sends a Content-Security-Policy header.
More Security Tools
View all 10JustChecker monitors your security headers continuously and alerts you if any regress.
What Is a Content Security Policy?
The Content-Security-Policy header tells the browser which sources of scripts, styles, images and frames are allowed on a page. A good CSP greatly reduces the impact of cross-site scripting (XSS). This tool checks whether a site sends a CSP and shows it.
When to Use It
- When hardening a site against XSS.
- When a CSP change blocks scripts or styles and you need to see the live policy.
How to Use It
- Enter the domain.
- Review the directives in the policy.
Understanding the Result
Key directives include default-src, script-src, style-src and frame-ancestors. 'unsafe-inline' and 'unsafe-eval' weaken protection.
Limitations
A CSP can also be set in a <meta> tag, and Content-Security-Policy-Report-Only only reports without blocking. Roll out new policies in report-only mode first.
Frequently Asked Questions
Explore More Tools
Keep going with related categories and our most used tools.