Diff two Content Security Policy headers.
Useful for promoting a policy from Report-Only to enforce, comparing staging
vs production, or reviewing a teammate's PR. Tokens added, removed, or moved are shown
per directive.
Before
After
Result
Run a comparison to see the changes.
No comparison yet.
Related reading
Patterns where a diff is the most useful tool.
Security headers best practices
The staged rollout order the diff is built around.
CSP Evaluator
Score each side of the diff before shipping.
CSP Generator
Author the new value with report-only, nonce, and hash helpers.
CSP not working
If the new policy breaks something, start here.
Script blocked by CSP
Diagnose the most common reasons an inline script is rejected after switching policies.
CSP Checker
Verify the new value is what your live server actually returns.
Next step
Once you know the delta, return to the generator or checker so the change can be validated against the live site.
Official references
Docs that help explain why a policy diff matters.