Skip to content

CSP Builder

Build Content-Security-Policy headers with visual interface and presets.

[Lab Tool] [Security Analysis]

All processing happens locally in your browser. No data is sent to any server.

Directives

Generated CSP

Header Format
Content-Security-Policy: default-src 'self'
Meta Tag Format
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">

Presets

Common Values

'self' Same origin only
'none' Block all
'unsafe-inline' Allow inline scripts/styles
'unsafe-eval' Allow eval()
https: Any HTTPS URL
data: Data URIs
blob: Blob URIs
*.example.com Wildcard subdomain