X-Frame-Options

The X-Frame-Options controls if the browser should be allowed to render a page inside a frame (e.g. <iframe>).

Disabling this behavior can prevent "click-jacking", by ensuring that a page content cannot be embedded into other sites (MDN).

Response headers

X-Frame-Options

Controls whether or not the page can be embedded inside a frame (<frame>, <iframe>, <embed> or <object>).

  • DENY the page cannot be embedded inside a frame
  • SAMEORIGIN the page can be embedded inside a frame on the same origin as the page itself (whether this applies recursively to the frame inside a frame is up to the browser)
X-Frame-Options: DENY
X-Frame-Options: SAMEORIGIN

References