// http header · security header
X-Frame-Options
Control framing to prevent clickjacking
What the X-Frame-Options header does
X-Frame-Options controls whether your page may be embedded in a frame — DENY blocks all framing, SAMEORIGIN allows only your own site. It defends against clickjacking, where an attacker frames your page invisibly. Modern policies increasingly use CSP's frame-ancestors instead.
Example
X-Frame-Options: DENYWhere it's used
X-Frame-Options is a security header. Security headers tell the browser to turn on protections against common web attacks.