All Tools

CSP Header Generator — Content Security Policy Builder

Build Content-Security-Policy headers with a visual form. Configure directives for scripts, styles, images, and more.

default-src
script-src
style-src
img-src
connect-src
font-src
media-src
frame-src
object-src
Policy value
default-src 'self'
HTTP Header
Content-Security-Policy: default-src 'self'

Frequently Asked Questions about CSP Header Generator

Is CSP Header Generator completely free?
Yes, CSP Header Generator is 100% free with no registration, no usage limits, and no hidden costs. Use it as many times as you need.
Is my data private?
CSP Header Generator runs entirely in your browser — nothing is ever sent to our servers. Your data stays on your device at all times.
Does it work offline?
Once the page has loaded, CSP Header Generator works fully in your browser without an internet connection.
Is my sensitive data processed locally?
Yes, all cryptographic operations run in your browser using the Web Crypto API. Your secrets and keys never leave your device.
Can I use it on my phone or tablet?
Yes, CSP Header Generator is fully responsive and works on smartphones and tablets with any modern browser.
This tool runs entirely in your browser. No data is ever sent to our servers.

You might also need