cd ../tools
$ CSP Analyzer
Parse and analyze Content Security Policy headers. Identify weak directives and get actionable security recommendations.
100% Client-Side - Your policies never leave your browser
csp_input.sh
$ security_score
$ parsed_directives
$ security_issues
$ recommendations
$ cat csp_directives.md
default-src
Fallback for other directives
script-src
JavaScript sources
style-src
CSS sources
img-src
Image sources
connect-src
XHR, WebSocket, Fetch
frame-ancestors
Embedding restrictions
Disclaimer
This tool is for educational purposes only. Always test CSP changes in a staging environment before deploying to production.