Other sites can show this page inside a frame
No working X-Frame-Options or frame-ancestors rule, so another site could load your page in a hidden frame.
Why it matters #
Without a framing rule, browsers let any site load your page inside a frame. An attacker can lay it under a fake page and trick visitors into clicking buttons they cannot see, such as "buy", "delete" or "allow". This is called clickjacking.
X-Frame-Options only knows DENY and SAMEORIGIN. With ALLOW-FROM or another value browsers ignore it, and it has no effect at all in a meta tag.
How to fix it #
Send "X-Frame-Options: SAMEORIGIN", or DENY if you never frame your own pages. The modern way is Content-Security-Policy: frame-ancestors 'self', which you can send as well.
If a partner must frame your page, list its address in frame-ancestors rather than allowing any site. Check with the Security Headers Checker.
What it looks like, and fixed #
X-Frame-Options: ALLOW-FROM https://partner.example.net
Current browsers do not understand ALLOW-FROM, so they ignore the header and any site can frame the page.
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self' https://partner.example.net
SAMEORIGIN for older browsers, and frame-ancestors for current ones, listing only the partner that really needs to frame you.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me protect [your website address] against clickjacking. It runs on [your platform or server, e.g. WordPress on nginx]. A checker says other sites could show my pages inside a frame, because there is no working X-Frame-Options or frame-ancestors rule. First check: run "curl -sI https://[your domain]/" (or ask me to paste the headers) and report any X-Frame-Options and Content-Security-Policy values, and any meta tags trying to do the same job. Ask me whether any partner, app or my own site needs to frame these pages. Explain plainly what is missing or ignored. Then give me the exact change: "X-Frame-Options: SAMEORIGIN" (or DENY if I never frame my own pages), and frame-ancestors 'self' in the CSP, adding only partners I name. Rules: back up configuration first, merge frame-ancestors into any existing CSP rather than sending a second policy, keep all other headers, and do not use ALLOW-FROM. Give the exact lines and where they go. Finally, tell me to re-check with the URSY.com Security Headers Checker at ursy.com/security-headers-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
WordPress sends X-Frame-Options only on its sign-in and admin screens. For the rest of the site, use a security plugin, your host or the server settings.
Your server or hosting
On nginx add add_header X-Frame-Options "SAMEORIGIN" always; and on Apache Header always set X-Frame-Options "SAMEORIGIN". It has no effect in a meta tag.
Your CDN (for example Cloudflare)
On Cloudflare, a response header Transform Rule can add X-Frame-Options and frame-ancestors.
Check it is fixed #
Run the Security Headers Checker again: it should report that other sites cannot frame the page, with X-Frame-Options SAMEORIGIN or DENY, or a frame-ancestors rule.
Official source #
Questions #
Will this stop YouTube videos or maps on my pages?
No. These rules control who may frame your pages, not what you embed in them.
Do I need both headers?
frame-ancestors is the modern rule and takes priority in current browsers. X-Frame-Options covers older ones, so sending both is a sound choice.
More problems in Security and HTTPS
- A form sends its data over plain http High priority
- Hidden instructions aimed at AI assistants High priority
- http:// does not redirect to https:// High priority
- Mixed content: files loaded over plain http High priority
- The certificate does not cover this address High priority
- The certificate has expired or is not valid yet High priority
- The certificate is not trusted by browsers High priority
- The https page redirects back to http High priority