default-src
Default fallback source
Content Security Policy
Build Content-Security-Policy headers with a visual directive table, or paste an existing policy and inspect it as structured data. Everything runs locally in your browser.
Choose directives and add source values. The output updates in real time.
Default fallback source
Script source
Style source
Image source
Fetch and connection source
Font source
Embedded frame source
Plugin object source
Base tag source
Form submission target
Allowed parent pages
Upgrade HTTP subresource requests
This directive has no source values. When enabled, it is written directly into the policy.
Generate or parse a policy and the CSP header will appear here.
This tool does not request target sites or inspect live response headers. Parsing, generation, risk hints, and copying all happen inside the current browser page.
Create a practical CSP starting point with common directives, then tighten it for the real application.
Paste an existing policy to review directive sources and common high-risk patterns quickly.
Copy a standard header or structured directive view for frontend, security, and operations collaboration.
No. This page only processes the CSP string you enter and does not access target sites.
No. The hints only cover static rules such as wildcards, unsafe-* values, and missing key directives.
'none' means no source is allowed. Combining it with other sources is confusing, so it should stand alone.