CSP Playground

Build a Content Security Policy header by enabling directives and adding source values. Copy the result for your server configuration.

CSP directive editor

Fetch directives
Document directives
Navigation directives
Reporting directives
Other directives