{
    "title": "Other sites can show this page inside a frame",
    "description": "No working X-Frame-Options or frame-ancestors rule, so another site could load your page in a hidden frame.",
    "url": "https://ursy.com/issues/clickjacking/",
    "canonical": "https://ursy.com/issues/clickjacking/",
    "markdown": "https://ursy.com/issues/clickjacking/index.md",
    "json": "https://ursy.com/issues/clickjacking/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:04+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/clickjacking/",
    "start_here": {
        "page": "https://ursy.com/issues/clickjacking/",
        "markdown": "https://ursy.com/issues/clickjacking/index.md",
        "json": "https://ursy.com/issues/clickjacking/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "clickjacking",
        "problem": "Other sites can show this page inside a frame",
        "summary": "No working X-Frame-Options or frame-ancestors rule, so another site could load your page in a hidden frame.",
        "status": "Live",
        "priority": "medium",
        "category": "security",
        "category_title": "Security and HTTPS",
        "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": [
            "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."
        ],
        "steps": [],
        "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.",
        "found_by": [
            {
                "tool": "security-headers-checker",
                "name": "Security Headers Checker",
                "status": "Live",
                "page": "https://ursy.com/security-headers-checker/",
                "card": "https://ursy.com/security-headers-checker.json"
            },
            {
                "tool": "http-header-checker",
                "name": "HTTP Header Checker",
                "status": "Live",
                "page": "https://ursy.com/http-header-checker/",
                "card": "https://ursy.com/http-header-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/clickjacking",
        "source": {
            "url": "https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/Clickjacking",
            "title": "MDN: Clickjacking"
        },
        "cite": "Other sites can show this page inside a frame. URSY.com. https://ursy.com/issues/clickjacking/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/clickjacking/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/clickjacking/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/clickjacking/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/clickjacking/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/clickjacking/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/clickjacking/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/clickjacking/#wordpress"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/clickjacking/#your-server-or-hosting"
        },
        {
            "level": 3,
            "text": "Your CDN (for example Cloudflare)",
            "id": "your-cdn-for-example-cloudflare",
            "url": "https://ursy.com/issues/clickjacking/#your-cdn-for-example-cloudflare"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/clickjacking/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/clickjacking/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/clickjacking/#questions"
        },
        {
            "level": 3,
            "text": "Will this stop YouTube videos or maps on my pages?",
            "id": "will-this-stop-youtube-videos-or-maps-on-my-pages",
            "url": "https://ursy.com/issues/clickjacking/#will-this-stop-youtube-videos-or-maps-on-my-pages"
        },
        {
            "level": 3,
            "text": "Do I need both headers?",
            "id": "do-i-need-both-headers",
            "url": "https://ursy.com/issues/clickjacking/#do-i-need-both-headers"
        }
    ],
    "links": [
        {
            "text": "meta tag",
            "url": "https://ursy.com/wiki/meta-tag/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "MDN: Clickjacking",
            "url": "https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/Clickjacking",
            "internal": false
        }
    ],
    "words": 561,
    "text": "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 the problem looks like 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. What it looks like fixed 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, and fill in the words in square brackets: 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/. 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 MDN: Clickjacking 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.",
    "source": "https://ursy.com/issues/clickjacking/"
}