我在移动应用上有这个html:
<header class="bar-title">
<a class="button-prev" onclick="history.back(-1)">
BACK
</a>
<h1 class="title">FACEBOOK</h1>
</header>
<div style="overflow:auto;-webkit-overflow-scrolling:touch; height: 100%; width: 100%; padding-top: 42px;" >
<iframe style="height: 100%; width: 100%;" src="https://www.facebook.com/pages/SOMEPAGE" ></iframe>
</div>
但我得到错误:拒绝显示'https://www.facebook.com/pages/SOMEPAGE ' in a frame because it set ' X-Frame-Options ' to ' DENY'
小评论:我没有访问Facebook页面选项
1 回答
X-Frame-Options
是响应头 .这意味着facebook阻止了这种行为