Overcoming “Display forbidden by X-Frame-Options”

后端 未结 26 2209
梦谈多话
梦谈多话 2020-11-21 06:31

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\'

26条回答
  •  执念已碎
    2020-11-21 07:22

    It's surprising that no one here has ever mentioned Apache server's settings (*.conf files) or .htaccess file itself as being a cause of this error. Search through your .htaccess or Apache configuration files, making sure that you don't have the following set to DENY:

    Header always set X-Frame-Options DENY

    Changing it to SAMEORIGIN, makes things work as expected:

    Header always set X-Frame-Options SAMEORIGIN

提交回复
热议问题