Skip to main contentSecurity Best Practices
- Default to DENY: Start with the most restrictive setting and relax only when necessary
- Regular auditing: Periodically review which pages need framing capabilities
- Combine with CSP: Use frame-ancestors for modern browsers while maintaining X-Frame-Options
- Monitor attempts: Log and analyze framing attempts to detect potential attacks
- Document exceptions: Maintain clear documentation of why certain pages allow framing