Free tool by OneFirewall

CSP Header Generator

Build a Content Security Policy interactively — configure directives, get Nginx/Apache config snippets.

  • OneFirewall
  • Free
  • No sign-up
  • Security
Free · by OneFirewall

Provided by OneFirewall

Build a Content Security Policy interactively — configure directives, get Nginx/Apache config snippets.

Open CSP Header Generator

Opens on onefirewall.com/tools/csp-generator

Go further

How to use CSP Header Generator

  1. 1

    Open CSP Header Generator

    Follow the button to the tool on onefirewall.com — no sign-up needed.

  2. 2

    Choose your options

    Set the parameters you need.

  3. 3

    Generate and copy

    Create the output and copy it into your project.

CSP Header Generator questions

What does CSP Header Generator do?

Build a Content Security Policy interactively — configure directives, get Nginx/Apache config snippets.

Is CSP Header Generator free?

Yes. CSP Header Generator is free from OneFirewall and needs no account.

Can OneFirewall do this for me?

Need help implementing and monitoring CSP for your web applications? OneFirewall Alliance provides this as a professional service.