Back to Tools

CSP Header Generator

Generate Content Security Policy headers to protect against XSS and other attacks

default-src 'self'

Directives

default-src

Fallback for other directives

'self'

Add Directive

Usage

Add this header to your HTTP response:

Content-Security-Policy: default-src 'self'