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