iframeframesx-frame-options

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 because display forbidden by X-Frame-Options." error in Chrome. I understand that this is a security limitation (for good reason), and don't have access to change it.

Is there any alternative framing or non-framing method to display pages within a single window that won't get tripped up by the X-Frame-Options header?


Solution

  • If a website refuses to be framed, there is no way to overcome that.

    (This post previously contained incorrect advice suggesting adding another X-Frame-Options header whose value is GOFORIT, but in all implementations that would also result in the website refusing to be framed and didn't actually address the question from OP.)