Visual builder for Content Security Policy headers. Enable and configure 18 directives; add source expressions as chips; get live warnings for unsafe-inline and unsafe-eval; copy the ready-to-use header string. Also includes an Evaluate mode to paste an existing CSP header and get a graded security report.
For strict CSPs without 'unsafe-inline': hash inline script/style content, or generate a nonce and add it to the matching directive.
Build a Content Security Policy header by enabling directives and entering allowed sources. Copy the header value or the .htaccess snippet when done.
Visual builder for Content Security Policy headers. Enable and configure 18 directives; add source expressions as chips; get live warnings for unsafe-inline and unsafe-eval; copy the ready-to-use header string. Also includes an Evaluate mode to paste an existing CSP header and get a graded security report.
Use the Build tab to enable directives, add source expressions as chips, and copy the generated header string.
Paste it into the Evaluate tab to get a graded security report highlighting weaknesses.
unsafe-inline and unsafe-eval weaken XSS protection, so the builder flags them live. Nonces are a common safer alternative.
The builder covers 18 CSP directives.
No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.