CSP Validator
Review saved Content-Security-Policy headers or paste a policy value. Compare enforcement and report-only directives, repeated entries and resource fallback.
Read CSP Coverage in a Saved Response
Paste a policy value, Content-Security-Policy field lines, or a saved response. Named fields determine each policy’s disposition.
A saved response uses its last final block by default. Headers and results stay on this device.
CSP Validator: how to use it
- Paste saved CSP header lines, a response capture or one policy as text.
- Choose the disposition for bare policy text. Validate and examine recognized directives, repeats and grammar notes.
- Review the fallback coverage and copy or download the local JSON report.
Limits and notes
Use up to 50,000 characters, 20 separate policy entries and 500 directives. Checks common directive grammar and shows declared fallback per policy. Browser behavior, document context and other controls require separate verification.
How your privacy works →CSP Validator: common questions
Which duplicate directive takes effect?
Inside one policy, the first occurrence controls. Separate policies are listed independently.
Does default-src set every directive?
It is a fallback for many fetch directives. Frame ancestors, form destinations and base URLs have separate directives.
What does report-only mean?
A report-only header identifies activity that would violate the policy. A destination controls where compatible browsers can send its reports.