在一个框架中,因为它将 'X-Frame-Options' 设置为 'SAMEORIGIN, SAMEORIGIN'
In a frame because it set 'X-Frame-Options' to 'SAMEORIGIN, SAMEORIGIN'
<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 window 但它向我显示错误
在一个框架中,因为它将 'X-Frame-Options' 设置为 'SAMEORIGIN, SAMEORIGIN'。
现在怎么办?
看起来 https://xxxx.net
的所有者不希望任何人在他们的网站上使用 iFrame 嵌入他的资源。
如果该域是您的,并且您想将其内容包含到您的另一个网站中,则应使用 ALLOW-FROM https://your-domain.com
将其列入白名单。
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
通过更改文件解决了它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>
<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 window 但它向我显示错误 在一个框架中,因为它将 'X-Frame-Options' 设置为 'SAMEORIGIN, SAMEORIGIN'。
现在怎么办?
看起来 https://xxxx.net
的所有者不希望任何人在他们的网站上使用 iFrame 嵌入他的资源。
如果该域是您的,并且您想将其内容包含到您的另一个网站中,则应使用 ALLOW-FROM https://your-domain.com
将其列入白名单。
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
通过更改文件解决了它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>