Content Security Policy (CSP) Builder
Free ToolGenerate strict, secure Content-Security-Policy (CSP) HTTP response headers to protect your website against XSS and clickjacking.
Content Security Policy (CSP) Builder
Visually generate strict, production-ready Content-Security-Policy headers for Nginx, Apache, PHP, and HTML meta tags.
Configure CSP Directives
Default origin for all unspecified resource directives.
Defines valid sources for JavaScript files and inline scripts.
Allowed origins for CSS stylesheets and font styling.
Sources from which images and favicons may be loaded.
Allowed web font origins (e.g. fonts.gstatic.com, data:).
Origins accessible via fetch, XMLHttpRequest, and WebSockets.
Specifies parents that may embed this page in <iframe>.
Forces all HTTP asset requests to HTTPS before loading.