CSP Generator Logo

CSP Generator

This is a Content Security Policy (CSP) generator. A CSP is a security feature that helps prevent attacks like cross-site scripting (XSS) and data injection attacks. It is a set of rules that tells the browser what content can be loaded and from where. This tool will help you generate a CSP for your website. CSP strings can be added to the Content-Security-Policy HTTP header or to a <meta> tag in the HTML document.

Created by David L. Goldberg.

My open source work