Refused to display in a frame , because it set 'X-Frame-Options' to 'SAMEORIGIN'

£可爱£侵袭症+ 提交于 2020-02-23 04:41:08

问题


I am developing a website that include a simple iframe

<iframe src="" frameborder="0" scrolling="no" id="product" width="100%" height="100%"></iframe>

I have this error message in the console: Refused to display 'http://fr.allsaints.com/women/shop-accessories/allsaints-rally-keyfob/?colour=42&category=700' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

How can I do to display it?


回答1:


You can ask whomever runs that website to grant you permission to frame it.

There's no way to bypass the explicit permission denial from a different site.



来源:https://stackoverflow.com/questions/28149141/refused-to-display-in-a-frame-because-it-set-x-frame-options-to-sameorigin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!