Skip to main content
kitlocal.dev

CSP Header Builder

Runs locally

100% processed in your browser. Inputs and outputs never leave your device.

Build Content Security Policy headers with visual controls

Inspect an existing policy

These are limited heuristics, not a complete browser or security evaluation.

default-src
'self'
Enter to add
script-src
'self'
https://apis.google.com
Enter to add
style-src
'self'
'unsafe-inline'
Enter to add
img-src
'self'
data:
https://images.unsplash.com
Enter to add
Generated Policy Header
Content-Security-Policy:
Unsafe Policy Warning
'unsafe-inline' or 'unsafe-eval' weakens XSS protection. Prefer nonces or hashes.
Live policy audit
  • object-src does not restrict plugins to none.
  • base-uri is absent.
  • frame-ancestors is absent.