The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe> or <object> .The X-Frame-Options header is described in RFC 7034.
There are three possible values for X-Frame-Options:
- The page cannot be displayed in a frame, regardless of the site attempting to do so.
- The page can only be displayed in a frame on the same origin as the page itself.
- The page can only be displayed in a frame on the specified origin.
In other words, if you specify
DENY, not only will attempts to load the page in a frame fail when loaded from other sites, attempts to do so will fail when loaded from the same site. On the other hand, if you specify
SAMEORIGIN, you can still use the page in a frame as long as the site including it in a frame is the same as the one serving the page.
For instructions on how to configure the server visit this Mozilla documentation.