CSP Builder & Evaluator

Runs in your browser — nothing is uploaded
Directives
Generate a fresh nonce for every response and put it on each allowed script tag.

About this tool

Build a Content-Security-Policy header with presets and checkboxes, or paste an existing policy to find weaknesses such as 'unsafe-inline', wildcards and missing directives. You get a score, plain-language findings and copy-ready snippets for the HTTP header, a meta tag, Nginx and Apache. Everything runs in your browser.

Frequently asked questions

What is CSP Builder & Evaluator?

Build a Content-Security-Policy and find weaknesses in an existing one. It is one of the Security & Crypto tools on MyCodeTips.

How do I use CSP Builder & Evaluator?

Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.

Is CSP Builder & Evaluator free to use?

Yes. It is free to use and does not need an account.

Is my data safe with CSP Builder & Evaluator?

Yes. It runs entirely in your browser, so what you enter is never uploaded to our servers.

Can I share my result?

Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.

Which tools are related to CSP Builder & Evaluator?

HTTP Security Headers Checker, Hash Generator (MD5, SHA-256).

Related tools

Share this tool Link copied
Advertisement