CSP and security headers

Build a Content-Security-Policy, review its flaws and export the headers for nginx, Apache, Netlify or Caddy.

Processed in your browser · Check it yourself Nothing sentData sent: 0 · To other domains: 0Analytics: not present · Ads: not present

Directives

Sources separated by spaces. Empty = not defined.

Other security headers
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: blob:; connect-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=()

Review

✓ No warnings: the policy covers the basics.

More in Security

Learn step by step in the pathSecuring your website