Security & Encoding
CSP Builder
Start from the policy that matches your site, then copy a ready-to-ship
Content-Security-Policy as a header, meta tag, or nginx rule. Fine-tune every
directive under Advanced — nothing leaves your browser.
How it works
Pick a preset to load a known-good starting point with a short explanation of why it fits.
Every directive is validated locally — unknown keywords and malformed sources are
reported instead of silently emitted. Change the format to get an HTTP header line, just
the policy value, an HTML meta tag, or an nginx add_header rule. The built
policy is written to the URL fragment so it can be bookmarked or shared, and no input is
ever sent to a server. For a staged rollout, tick Report-only so browsers
report violations without blocking.