📝 Enter CSP Policy
📊 Analysis Results
Enter a CSP policy and click Analyze
Security Score
--
Awaiting analysis
Parse Content-Security-Policy headers, detect security issues, generate recommended configs Web SecurityZero Dependencies
Enter a CSP policy and click Analyze
Awaiting analysis
Content-Security-Policy (CSP) is one of the most important security mechanisms for modern web applications. It uses an HTTP header to tell the browser which resources are allowed to load, effectively preventing cross-site scripting (XSS), clickjacking, data injection, and other security threats.
A misconfigured CSP may be ineffective: 'unsafe-inline' defeats XSS protection; wildcards (*) allow any source; missing default-src leaves unspecified directives unrestricted; data: URIs can be exploited for malicious code injection.