About the Content-Security-Policy Generator
Pick what your site loads (fonts, analytics, CDNs) and get a CSP header for nginx, Apache or a meta tag.
This tool runs entirely in your browser. Nothing you type is uploaded.
How to use it
- 1Type or paste your input in the box (or open a file where offered).
- 2The result updates instantly — adjust the options to fine-tune it.
- 3Use Copy or Download to take the result with you.
- 4Everything runs in your browser, so you can use it on private data.
Frequently asked questions
Is the Content-Security-Policy Generator free?
Yes. The Content-Security-Policy Generator is completely free with no sign-up and no usage limits for normal use. It is provided by Quick2Host as a free resource for developers and site owners.
Is my data uploaded anywhere?
No. The Content-Security-Policy Generator runs entirely in your web browser. Nothing you type, paste or open is sent to our servers.
What does the Content-Security-Policy Generator do?
Build a CSP header step by step. Pick what your site loads (fonts, analytics, CDNs) and get a CSP header for nginx, Apache or a meta tag.
Is it safe to generate a private key in the browser?
Yes, when the key is created locally with the browser’s cryptography API, as these tools do. It never leaves your device, which is safer than tools that generate keys on a server.
Check SSL certificates, grade your security headers, and generate keys, CSRs and strong passwords — key material is generated in your browser and never uploaded. See all 18 ssl & security tools →