Skip to main content
Security & privacy

CSP Generator

Compose a Content Security Policy from presets (strict, analytics, permissive), fine-tune every directive, enable Report-Only or upgrade-insecure-requests, and copy the HTTP header or meta tag, with warnings for unsafe-inline, unsafe-eval and wildcards.

Local processing · Fits its container · Updated without touching your code

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Responsive and automatically resized by Bethemesh.

Code to copy

Need help with the integration?

The documentation details the options, themes, sizes and the integration in each CMS. The code works in an HTML page, WordPress, Webflow, Wix, React, Vue or Astro.