What it does
This checker focuses on the headers that control what a page may load and whether it is isolated from other origins: Content-Security-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Embedder-Policy and Cross-Origin-Resource-Policy. It explains the directives and the breakage each one can cause.
How it works
CSP is built from directives such as default-src, script-src, style-src, img-src, connect-src and frame-ancestors. Each accepts a source list: 'self', specific origins, data: or nonces/hashes. Missing directives fall back to default-src.
Strict CSP avoids 'unsafe-inline' and eval. Inline scripts need a nonce generated per response or a hash of the exact content. Styles are harder; many sites keep 'unsafe-inline' for CSS and accept the trade-off.
COOP: same-origin separates the browsing context from cross-origin windows, which mitigates some Spectre-style attacks and tabnabbing. COEP: require-corp makes the page cross-origin isolated, but every cross-origin resource must then opt in with CORP or CORS.
Cross-Origin-Resource-Policy controls who may embed a resource. same-origin blocks other sites; cross-origin allows them. It complements CORS and is enforced even when CORS is not involved.
Report-only mode is the safe rollout path. Content-Security-Policy-Report-Only sends violation reports without blocking. Collect for a week, fix the real dependencies, then enforce. Skipping this step is how CSP ends up disabled after an outage.
When to use it
- Plan a CSP rollout with report-only data.
- Check whether COOP/COEP are set for SharedArrayBuffer features.
- Find the directive blocking a third-party script or font.
- Audit cross-origin isolation after adding an embed.
Glossary
- CSP
- Content-Security-Policy: a per-response allowlist for resources.
- Nonce
- A random per-response token that permits a specific inline script.
- COOP
- Cross-Origin-Opener-Policy, which isolates the window from other origins.
- COEP
- Cross-Origin-Embedder-Policy, which requires cross-origin resources to opt in.
- CORP
- Cross-Origin-Resource-Policy, which controls who may embed a resource.
Frequently asked questions
Will a strict CSP break Google Analytics or fonts?+
It will unless their origins are allowed in script-src, connect-src and font-src. Add only the specific origins you need, and prefer nonces for inline snippets.
Do I need COOP and COEP together?+
For cross-origin isolation, yes. COOP isolates the window and COEP isolates resources. Enabling one without the other does not give you the SharedArrayBuffer guarantees.
Why do images break with COEP?+
Cross-origin images must send CORP or be requested with CORS. Without that opt-in, the browser blocks them in an isolated page.
Is report-only safe in production?+
Yes. It does not block anything. The risk is ignoring the reports and enforcing a policy that was never validated.
Does CSP stop XSS?+
It reduces impact and can block many injection paths, but it is not a substitute for output encoding and safe templating.
API & MCP
The same result envelope is available over REST and MCP. Replace the sample value with your own target.
curl "https://100www.dev/api/v1/tools/security-policy-headers?u=https%3A%2F%2Fexample.com"Shareable result
https://100www.dev/tools/security-policy-headers?u=https%3A%2F%2Fexample.com

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


