Security
X-Frame-Options
Controls whether a page can be displayed in a frame or iframe, protecting against clickjacking attacks.
Syntax
X-Frame-Options: DENY | SAMEORIGIN
Example
X-Frame-Options: SAMEORIGIN
Description
The X-Frame-Options header controls whether a browser can render a page in <frame>, <iframe>, <embed>, or <object>. Key defense against clickjacking.
Values: DENY (no framing), SAMEORIGIN (same-origin only), ALLOW-FROM uri (deprecated).
The modern replacement is frame-ancestors in Content-Security-Policy. For maximum compatibility, use both headers.
Check if your website sends this header correctly
Check your headers →