Skip to main content
SiteIndex

Developer

CSP Header Parser Documentation

Use the free CSP Header Parser →

Break a Content-Security-Policy header into its individual directives and sources for review.

What does it do?

Break a Content-Security-Policy header into its individual directives and sources for review.

How does it work?

SiteIndex splits a pasted Content-Security-Policy value on semicolons, then lists each directive with its allowed sources in an easy-to-scan table.

When to use it
  • Review a CSP header before deploying a security policy change.
  • Spot an overly permissive or missing directive at a glance.
  • Document the current CSP rules for a page or application.
Inputs and outputs
Input
Text, files, or values entered in the browser, depending on the tool.
Output
A result shown in the browser that can be reviewed or copied where supported.
Limitations
  • Splitting directives does not validate source expressions, simulate enforcement, or certify a policy as secure.
  • Duplicate directives and browser-specific enforcement require separate inspection.
Privacy and data handling

Inputs for this browser-side tool are processed locally and are not sent to SiteIndex. Normal page analytics may still be collected as described in the Privacy Policy. Read the Privacy Policy.

How to use it

  1. Copy a Content-Security-Policy header value, not the full response header block.
  2. Paste it into the parser.
  3. Review each semicolon-separated directive and source list against your deployment policy.

Related tools