Content Security Policy (CSP) Builder

Compose a production-ready Content Security Policy header with explicit source directives and copyable server or meta-tag output.

Directive Sources

Use spaces or commas between allowed sources.

Tell browsers to rewrite insecure asset URLs.

Block insecure subresources on secure pages.

Header Value

Use this value in your server or CDN response headers.

Content-Security-Policy
1

HTML Meta Tag

Useful for prototypes or static HTML pages.

Meta Tag
1