Content Security Policy Analyzer

Analyze one pasted CSP policy locally. Identify duplicate directives, broad sources, risky allowances and absent independent controls.

How to use it

  1. Paste a single CSP policy value or an enforcing or Report-Only header line.
  2. Review effective first occurrences, syntax notes and controls that do not fall back to default-src.
  3. Compare advice with resources your site needs and test changes against actual supported browsers.

For example, default-src 'self'; object-src 'none' constrains many resource types. Browser CSP behavior also depends on other delivered policies, context and support.

Related guides

Related tools

Frequently asked questions

Does Report-Only block requests?

A Report-Only header collects policy observations without enforcing that header.

Which duplicate directive is used?

Within one policy, a later duplicate directive does not replace the first.