CSP
Content-Security-Policy, which restricts resources a page may load or execute.
Overview
Content-Security-Policy, which restricts resources a page may load or execute.
Compression, caching, CORS, cookies and security policy headers.
This term appears across 5 tools in the HTTP / Web category. Use the examples and checks below to see how it behaves in practice.
Where you see it
A header that is valid on one site can break another, especially CSP and CORS.
HTTP Header ReferenceX-Frame-Options and CSP frame-ancestors control framing.
Security Headers CheckerVerify a CSP rollout in report-only mode before enforcing.
Security Headers CheckerCSP is built from directives such as default-src, script-src, style-src, img-src, connect-src and frame-ancestors.
CSP / COOP / COEP Checker
Examples
Try a live check with https://example.com using CSP / COOP / COEP Checker.
CSP / COOP / COEP CheckerHow to use it
- Open CSP / COOP / COEP Checker and run it against a real target such as https://example.com.
- Compare the raw answer with the definition and the example above; do not rely on the summary alone.
- If the answer differs, use the troubleshooting checks below and confirm with a second source before changing anything.
What to watch for
- CSP can be cached for its TTL, so a change may look missing until caches expire; compare the record's TTL with the age of the answer.
- Cookie scope is set by Domain, Path, SameSite and Secure; a broad Domain makes CSP first-party across every subdomain.
- A result applies only to the exact target, configuration and scope you tested; check sibling names, hosts or paths separately.
Why it matters
Compression, caching, CORS, cookies and security policy headers.
5 tools use this term
HTTP / WebWhere to check it
Use HTTP Header Reference, Resource Dependency Tree, HTTP Header Checker, Security Headers Checker, CSP / COOP / COEP Checker to inspect it directly. Each tool shows the raw result and its limitations.
HTTP / WebCommon problems and fixes
Are the examples production-ready?
Treat them as a starting point. CSP and CORS examples need to match your actual origins and resources.
From HTTP Header ReferenceWhich headers matter most for security?
CSP, HSTS, X-Content-Type-Options, Referrer-Policy, Permissions-Policy and frame protection are a common baseline.
From HTTP Header ReferenceDoes adding a header always improve security?
No. A misconfigured CSP or HSTS policy can break a site or lock out users, so test before deploying.
From HTTP Header ReferenceBlocked or filtered: compare a public resolver and check firewall, proxy and content-filter rules.
An old value persists: wait for the TTL to expire, then query the authoritative server directly.
Used in these tools
5 toolsStandards and references
Frequently asked questions
What is CSP?+
Content-Security-Policy, which restricts resources a page may load or execute.
How do I check CSP?+
Use HTTP Header Reference, Resource Dependency Tree, HTTP Header Checker, Security Headers Checker, CSP / COOP / COEP Checker to inspect it directly. Each tool shows the raw result and its limitations.
Why does CSP matter?+
It affects how HTTP / Web results are read. Compression, caching, CORS, cookies and security policy headers.
What is a common mistake?+
Caching without Vary. A shared cache can serve the wrong language or encoding for CSP.
How this page is written
Definitions are compiled from the 244 tool pages, checked against the standards below, and reviewed by Steve. Each term links to the tools where it is used.


