Browser-onlyCSP auditLearning mode

CSP Policy Viewer — Content Security Policy Formatter

Parse a Content Security Policy string into grouped directives, highlight risky values such as `unsafe-inline`, and review whether the policy includes common baseline controls such as `default-src`, `object-src`, and `frame-ancestors`.

Best for

CSP review

Input

Pasted policy

Output

Warnings and groups

CSP workspace

Paste a CSP header value, then inspect the directive groups and the values that need more caution.

Policy summary

Review the score, directive count, unsafe values, and nonce or hash usage at a glance.

Run the analysis to see directive counts, warning levels, and a policy score here.

Frequently asked questions

Content Security Policy helps limit which sources can provide scripts, styles, images, frames, and other resources. It is mainly used to reduce XSS and related injection risks.

They weaken CSP substantially by allowing inline script execution or dynamic evaluation paths that attackers often abuse.

No. It only analyzes the CSP string you paste into the page, and everything stays local in your browser.