2013-12-17 18 views
5

tôi có html này trên ứng dụng di động:truy cập vào trang facebook trong iframe từ chối

<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> 

nhưng tôi nhận được lỗi: từ chối để hiển thị 'https://www.facebook.com/pages/SOMEPAGE' trong một khung bởi vì nó thiết lập 'X-Frame-Options' để 'DENY'

ít bình luận: tôi không có quyền truy cập vào tùy chọn trang facebook

Trả lời

1

X-Frame-Options là một đáp ứng tiêu đề.

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.

Nó có nghĩa là khối facebook loại hành vi

Các vấn đề liên quan