gpt4 book ai didi

iframe - 在一个框架中,因为它将 'X-Frame-Options' 设置为 'SAMEORIGIN, SAMEORIGIN'

转载 作者:行者123 更新时间:2023-12-02 02:48:27 24 4
gpt4 key购买 nike

<a href="#popupVideo" data-rel="popup" data-position-to="window" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">Launch video player</a>
<div data-role="popup" id="popupVideo" data-overlay-theme="b" data-theme="a" data-tolerance="15,15" class="ui-content">
<iframe src="https://xxxx.net" width="497" height="298" seamless=""></iframe>
</div>

我试图在弹出窗口中添加 iframe,但它向我显示错误在框架中,因为它将“X-Frame-Options”设置为“SAMEORIGIN,SAMEORIGIN”。

现在该怎么办?

最佳答案

通过更改文件httpd.conf解决了这个问题

<IfModule headers_module> 
<IfVersion >= 2.4.7 >
Header always setifempty X-Frame-Options SAMEORIGIN
</IfVersion>
<IfVersion < 2.4.7 >
Header always merge X-Frame-Options SAMEORIGIN
</IfVersion>
RequestHeader unset Proxy
</IfModule>

关于iframe - 在一个框架中,因为它将 'X-Frame-Options' 设置为 'SAMEORIGIN, SAMEORIGIN',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40522747/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com