' X型框架,选项'到#SAMEORIGIN'。错误

时间:2015-01-02 01:52:15

标签: javascript jquery html cross-domain

我收到此错误。

Refused to display 'https://www.google.com.au/?gfe_rd=cr&ei=uPilVOfREaGN8QfsvIGABQ&gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

我制作了一个html5广告并上传到我的广告服务器上,该广告服务器生成了一个脚本,我将该脚本放在页面上以测试广告。该页面会在iframe中加载广告。

我有一个非常简单的链接,可以在我的orignal索引页面中打开google.com页面,但我在测试页面中收到此错误。

  <div id="container">
        <div id="ad" class="collapsed">
        </div>
        <div id="left_panel" >  <a href="https://www.facebook.com/owais.ahmed.96" id="example">Testing!</a>
        </div>
        <div id="right_panel"  ></div>
    </div>

Error

1 个答案:

答案 0 :(得分:1)

您正试图在其他域上打开谷歌,但谷歌页面上的标题设置为相同的来源,例如同一个域。

另请参阅此相关问题:

How to show google.com in an iframe?

相关问题