Security & IDs

Content security policy builder

Draft a restrictive Content-Security-Policy header from your allowed HTTPS origins.

How to use
Free. Always.Inputs stay in your browserNo sign-up

Your saved tools stay in this browser.

Content security policy builder — workspace

Loading your tool…

How to use: Content security policy builder

  1. Start with the example, or replace it with your own values.

  2. Review Text or data, then select “Get result”.

  3. Read the result, then copy or download it. Edit any input to try again.

What you can do

  • Draft a restrictive Content-Security-Policy header from your allowed HTTPS origins.

What you get

  • A result you can review, copy or download. Numeric tools show labeled calculations; text tools show the transformed output.

What you need

Text or data
Enter or paste your value, or start with the example.

Try an example

Text or data
https://cdn.example.com
Try it in the tool

Good to know

  • One HTTPS origin per line. Generates a restrictive starting policy; review and test it before applying.

Your work stays on your device

Your files and entered values are processed in your browser and are not uploaded for processing. The website and any required processing engines still download from the site.

Questions & answers

Is Content security policy builder free?

Yes. Content security policy builder is free to use and does not require an account.

Are my files or entered values uploaded?

Your files and entered values are processed in your browser and are not uploaded for processing. The website and any required processing engines still download from the site.

What result can I save?

A result you can review, copy or download. Numeric tools show labeled calculations; text tools show the transformed output.

What should I check before using the result?

One HTTPS origin per line. Generates a restrictive starting policy; review and test it before applying.

Keep going with another tool

UUID generator Create unique version 4 identifiers for your projects.SHA text fingerprint Create a SHA-256, SHA-384 or SHA-512 digest of text.Password checklist Check password length and character patterns locally, without a breach database lookup.Random word passphrase Generate a random multiword passphrase using the browser's cryptographic randomness.Random PIN generator Generate one or more random numeric PINs with your chosen length.