1

我正在尝试http://teeSpring.com/在 iframe 中打开。它正在抛出Refused to display 'http://teespring.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.错误。
我已经经历了多个答案,但没有一个对我有用。大多数解决方案都特定于 google-maps、facebook 或 youtube 视频。
这是我的代码:

<html>
    <head>
        <base target="_blank" />
        <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    </head>
    <body>
        <iframe src="http://teespring.com" name="frame1" style="border: 0; width:20%; height:20%; overflow:auto;">

        </iframe>
    </body>
</html>

我确实使用target="_blank"过,但没有运气。

注意:尝试打开第三方页面。所以我无法控制添加标题或其他元数据。

4

1 回答 1

4

teespring.com告诉访问者的浏览器他们不应该在框架中显示它。

您有四个选择:

  • 与跑步的人交谈teespring.com并说服他们不要这样做
  • 只需链接到它们,而不是试图将它们推入框架
  • 根本不要将您的访客指向他们
  • 代理他们的网站并将 iframe 指向您的代理(这可能会进入侵犯版权的领域)
于 2014-03-22T15:16:04.000 回答