{
    "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options",
    "locale": "en",
    "title": "X-Frame-Options: Knowledge hub | DeLaParra Services",
    "description": "Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/x-frame-options",
        "nl": "https://delaparra-services.nl/nl/kennisbank/x-frame-options"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/x-frame-options.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/x-frame-options.md",
        "json": "https://delaparra-services.nl/knowledge-hub/x-frame-options.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/x-frame-options.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/x-frame-options.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options.csv",
            "encodingFormat": "text/csv",
            "name": "x-frame-options.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options.json",
            "encodingFormat": "application/json",
            "name": "x-frame-options.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options.md",
            "encodingFormat": "text/markdown",
            "name": "x-frame-options.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options.pdf",
            "encodingFormat": "application/pdf",
            "name": "x-frame-options.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options.zip",
            "encodingFormat": "application/zip",
            "name": "x-frame-options.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options/skills.zip",
            "encodingFormat": "application/zip",
            "name": "x-frame-options-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [X-Frame-Options](<https://delaparra-services.nl/knowledge-hub/x-frame-options>)\n\n  \n\nCategory: HTTP headers \n\n# X-Frame-Options\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is X-Frame-Options?\n\n \n\nX-Frame-Options: Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN. ` X-Frame-Options ` controls whether other sites may show your pages inside an iframe. ` DENY ` blocks all framing; ` SAMEORIGIN ` allows only your own site. It protects against clickjacking, where an attacker loads your page invisibly inside theirs and tricks visitors into clicking buttons, such as confirming a payment or changing settings, while they think they are clicking something else.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about X-Frame-Options\n\n  \n\n### What should you keep in mind with X-Frame-Options?\n\n \n\nThe modern replacement is the ` frame-ancestors ` directive in Content-Security-Policy, which is more flexible and can list specific allowed sites. Many sites send both for compatibility with older browsers. Set it on every page unless you deliberately allow embedding, for example for a widget meant to be placed on other websites. Admin panels and account pages should never be frameable.\n\n    \n\n### What does an example of X-Frame-Options look like?\n\n \n\n```\nX-Frame-Options: DENY\n```\n\n \n\n## At a glance\n\n   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More HTTP headers terms\n\n \n\n- [Strict-Transport-Security](<https://delaparra-services.nl/knowledge-hub/strict-transport-security>) \n- [User-Agent](<https://delaparra-services.nl/knowledge-hub/user-agent>) \n- [Vary](<https://delaparra-services.nl/knowledge-hub/vary>) \n- [WWW-Authenticate](<https://delaparra-services.nl/knowledge-hub/www-authenticate>) \n- [X-Content-Type-Options](<https://delaparra-services.nl/knowledge-hub/x-content-type-options>) \n- [X-Rate-Limit-\\*](<https://delaparra-services.nl/knowledge-hub/x-rate-limit>)\n\n \n\n[All terms starting with X](<https://delaparra-services.nl/knowledge-hub#letter-x>)\n\n \n\n## Skills\n\n \n\n- ### HTTP headers review\n\n \n\nUse when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.\n\n [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) \n- ### Laravel OWASP Security\n\n \n\nOWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities (\"run OWASP audit\", \"security review\", \"check my app security\") or writing secure Laravel code involving auth, payments, file uploads, or API design. Triggers on security-related tasks, payment handling, authentication, or any request to audit a Laravel codeba\n\n [View skill](<https://delaparra-services.nl/skills/laravel-owasp-security>) [Download zip](<https://delaparra-services.nl/skills/laravel-owasp-security/download>) \n- ### SAST Configuration\n\n \n\nConfigure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.\n\n [View skill](<https://delaparra-services.nl/skills/sast-configuration>) [Download zip](<https://delaparra-services.nl/skills/sast-configuration/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/x-frame-options/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)\n\n \n\n## Related services\n\n \n\n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. \n- [Web design and development](<https://delaparra-services.nl/services#service-01>)\n\nAfter our first meeting, we'll develop a custom solution for a fast, scalable application.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/x-frame-options)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options",
                "name": "X-Frame-Options: Knowledge hub | DeLaParra Services",
                "description": "Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#term",
                    "name": "X-Frame-Options",
                    "description": "Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN.",
                    "termCode": "x-frame-options",
                    "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options",
                    "inLanguage": "en",
                    "keywords": "HTTP headers",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is X-Frame-Options?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN. X-Frame-Options controls whether other sites may show your pages inside an iframe. DENY blocks all framing; SAMEORIGIN allows only your own site. It protects against clickjacking, where an attacker loads your page invisibly inside theirs and tricks visitors into clicking buttons, such as confirming a payment or changing settings, while they think they are clicking something else."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with X-Frame-Options?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The modern replacement is the frame-ancestors directive in Content-Security-Policy, which is more flexible and can list specific allowed sites. Many sites send both for compatibility with older browsers. Set it on every page unless you deliberately allow embedding, for example for a widget meant to be placed on other websites. Admin panels and account pages should never be frameable."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of X-Frame-Options look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "X-Frame-Options: DENY"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/http-headers-review#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/laravel-owasp-security#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/sast-configuration#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "X-Frame-Options"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#dataset",
                "name": "X-Frame-Options",
                "description": "Whether your page can be embedded in an iframe. Defends against clickjacking. Use DENY or SAMEORIGIN.",
                "url": "https://delaparra-services.nl/knowledge-hub/x-frame-options",
                "identifier": "https://delaparra-services.nl/knowledge-hub/x-frame-options#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/x-frame-options#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "HTTP headers",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "x-frame-options-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/x-frame-options/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}