frontend-security-csp-and-xss-hardening
Installation
SKILL.md
Frontend Security Csp And Xss Hardening
Use When
- Internet-facing UI with rich user content
- Security review flagged XSS or CSP gaps
Workflow
- Define CSP policy per environment with nonce or hash strategy
- Sanitize untrusted HTML and URL inputs
- Restrict inline scripts and dangerous DOM APIs
- Audit third-party scripts and dependencies
- Validate security headers at edge and app layers