2013-12-17 79 views
5

我對移動應用這個網站:訪問Facebook頁面中的iframe否認

<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」,因爲它集「X框,選擇」爲「DENY」

小評論:我沒有訪問Facebook頁面選項

回答

1

X-Frame-Options是響應頭。

The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a or . Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.

這意味着Facebook的塊這種行爲