CSP Builder

Build and analyze Content-Security-Policy headers visually.

Generated Header
default-src 'self'
Add to your server: Content-Security-Policy: default-src 'self'
Fallback for all resource types
'self'
JavaScript sources
CSS stylesheet sources
Image sources
Font file sources
XHR, fetch, WebSocket origins
Audio and video sources
Plugin sources (Flash, Java)
iframe sources
Who can embed this page
Restrict <base> element URLs
Form submission targets
Web Worker sources
App manifest sources

Get the JSON & API Cheat Sheet

Formatting tricks, jq commands, and common patterns — one page, zero fluff.