Quick start
Paste input, review output instantly, then copy it for your workflow.
Build a Content-Security-Policy header from domain allowlists.
Updated
Build a Content-Security-Policy header from domain allowlists.
Input format: One allowed origin per line
Quick start
Enter input and view computed output.
Paste or type your data in the input box.
The tool processes input instantly in your browser.
Copy output and continue your workflow.
In-depth guide
Build a Content-Security-Policy header from domain allowlists. This tool is designed for fast local processing and practical day-to-day use.
Paste input, review output instantly, then copy it for your workflow.
Use one value per line for structured inputs. Common separators are handled gracefully.
Processing runs in your browser tab for the MVP workflow, with no mandatory upload step.
Use this tool for quick browser-based work when you need an answer or output immediately. Use a dedicated application or automated workflow when you need bulk processing, approvals, or repeatable production rules.
It tells the browser which sources of scripts, styles, images and other resources are allowed, which mitigates cross-site scripting and data injection attacks.
Deploy the policy in report-only mode first using Content-Security-Policy-Report-Only, watch the violation reports, then enforce once it is clean.
Allowing unsafe-inline defeats much of CSP's XSS protection. Prefer nonces or hashes for the few inline scripts and styles you genuinely need.
It is the fallback for any directive you do not set explicitly, so a restrictive default-src plus targeted overrides is a solid baseline.
Send it as an HTTP response header from your server or CDN. A meta tag works for some directives but cannot cover frame-ancestors or sandbox.
No. The header string is generated entirely in your browser.
Keep exploring
Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.
Encrypt and decrypt text locally with AES-256-GCM and passphrase-derived keys.
Generate signed HS256 JWTs from custom header and payload JSON locally.
Generate 6-digit rolling TOTP codes and otpauth URIs from Base32 secrets.
Shrink PDF file size without uploading to a server.
Body Mass Index with metric / imperial inputs and WHO category bands.
Combine multiple PDFs into one in your browser.
Split a PDF by pages or page ranges, download as zip.