Set an X-Frame-Options header
SkillSecurityx-frame-options is a skill for AI agents that reviews HTTP response headers for clickjacking protection. It checks whether a website's security settings block attackers from tricking users into clicking hidden buttons, and is used when reviewing any web application with authenticated user actions.
Use Set an X-Frame-Options header in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Set an X-Frame-Options header and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Set an X-Frame-Options header skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have a web application with authenticated user actions that you want to review.
What your AI can do with it
- Review HTTP response headers for clickjacking protection
- Check whether security settings block attackers from tricking users into clicking hidden
- Apply to any web application with authenticated user actions
Getting started
- Have a web application with authenticated user actions that you want to review.
- Add the x-frame-options skill to your agent's available skills.
- Ask the agent to review the application's HTTP response headers for clickjacking protection.
What this skill tells your AI
The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/x-frame-options/SKILL.md and read by ahel’s review.
Without framing protection, an attacker can embed your banking login page in a transparent iframe on a malicious site and trick users into clicking buttons they cannot see — transferring money, changing settings, or leaking credentials.
Quick Reference
- Use
X-Frame-Options: DENYto prevent all framing, orSAMEORIGINto allow framing only from your own domain ALLOWFROMis obsolete and unsupported in modern browsers — use CSPframe-ancestorsinstead- The modern equivalent is
Content-Security-Policy: frame-ancestors 'none'— prefer CSP for new sites - Both headers can coexist: X-Frame-Options for older browsers, frame-ancestors for modern ones
- Clickjacking attacks trick users into clicking invisible iframe buttons — DENY eliminates this entirely
Check
Check whether the server sends an X-Frame-Options header (DENY or SAMEORIGIN) or a Content-Security-Policy header with frame-ancestors directive to prevent clickjacking.
Fix
Add X-Frame-Options: DENY to all responses if the site does not need to be embedded anywhere. If legitimate framing is needed on the same origin, use SAMEORIGIN. For fine-grained control, use CSP frame-ancestors instead.
Explain
Explain what a clickjacking attack is, how X-Frame-Options and CSP frame-ancestors prevent it, and the difference between DENY and SAMEORIGIN values.
Code Review
Review server config, headers, forms, and integration points related to Set an X-Frame-Options header. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/security/x-frame-options
Signals
- GitHub stars
- 74k
- Forks
- 7k
- Last commit
- Oct 2026
Questions
- When should this skill be used?
- Use it when reviewing HTTP response headers for clickjacking protection on any web application with authenticated user actions.
- What does the skill check?
- It checks whether a website's security settings block attackers from tricking users into clicking hidden buttons.
Advanced
- Item type
- skill
- Key
x-frame-options- Source
- github.com/thedaviddias/front-end-checklist
github.com/thedaviddias/front-end-checklist
Related picks
Skill · davila7
The pick for Web (OWASP)security-and-hardening
Skill · addyosmani
The pick for Web (OWASP)gws-shared
Skill · googleworkspace
More in Securitybrandkit
Skill · leonxlnx
More in Securitydefi-amm-security
Skill · affaan-m
More in Securityfastapi-patterns
Skill · affaan-m
More in Security