What problem does it solve? Frontend applications are vulnerable to client-side attacks like XSS, clickjacking, and open redirects when developers use unsafe DOM APIs or skip security headers. This Skill provides hands-on guidance for writing secure frontend code that defends against these browser-based threats. ## Core Features & Use Cases - XSS Prevention and Sanitization: Guides safe DOM manipulation with textContent, DOMPurify integration, and context-aware output encoding. - Content Security Policy Configuration: Helps design nonce-based or hash-based CSP directives with violation reporting and progressive rollout. - Secure Auth and Navigation: Covers token storage, OAuth PKCE flows, redirect allowlists, and clickjacking protection with frame-ancestors. - Use Case: When building a comment feature that renders user-generated HTML, use this Skill to sanitize input with DOMPurify, configure a strict CSP, and validate all redirect URLs before deployment. ## Quick Start Ask the assistant to review your frontend component for XSS vulnerabilities and implement secure DOM manipulation with a Content Security Policy.