我正在使用 iframe 在 iframe 中显示网站
<iframe id="viewCampaign" frameborder="0" class="viewCampaign"
style="height: 100% !important;width: 100% !important;" src="@if(isset($campMetaData->page_url)){{$campMetaData->page_url}}@endif">
</iframe>
我想知道所有其他网站都在 iframe 内正确加载,但 facebook 没有加载。此外,使用“https://”端口的网站未加载到我的页面中。
最佳答案
Facebook 的响应中有此 header
x-frame-options:DENY
它会阻止在 iframe 上加载响应。
关于javascript - facebook 未在 iframe 内加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40316863/