Content Security Policy builder

Build a policy from explicit directives and check common unsafe settings.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

How to use this tool

  1. Build a policy from explicit directives and check common unsafe settings.
  2. Adjust the labelled settings, then run the tool. Copy the result or download it as a file.

Things to know

  • Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
  • A policy needs testing with the actual application. This checks supplied text only.
  • Policy: 64 KiB and 1,024 directive separators. This text inspection does not evaluate or install the policy.

You might also need

More in web development