X-Frame-Options
Response header, security
Controls whether other sites may embed the page in a frame, protecting against clickjacking.
X-Frame-Options: SAMEORIGIN
DENY forbids all framing, SAMEORIGIN allows it only from the same origin. The older ALLOW-FROM value is not supported by modern browsers.
The CSP directive frame-ancestors is the modern replacement and takes precedence where supported. Sending both is fine for older browsers.
Recommended value
SAMEORIGIN
Check it on a live site
The security header check grades this header together with the others that protect visitors.
Specification: RFC 7034