Questions tagged [x-frame-options]

The X-Frame-Options HTTP response header tells browsers whether to allow an HTML document to be rendered in iframe element or frame element in HTML documents at other origins.

The X-Frame-Options HTTP response header tells browsers whether or not to allow an HTML document to be rendered in iframe elements or frame elements in HTML documents at other origins. Sites can use X-Frame-Options to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.

See https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options

438 questions
434
votes
26 answers

Overcoming "Display forbidden by X-Frame-Options"

I'm writing a tiny webpage whose purpose is to frame a few other pages, simply to consolidate them into a single browser window for ease of viewing. A few of the pages I'm trying to frame forbid being framed and throw a "Refused to display document…
Garen Checkley
  • 5,252
  • 5
  • 19
  • 23
195
votes
15 answers

How to set 'X-Frame-Options' on iframe?

If I create an iframe like this: var dialog = $('