iframe 内容被阻止

Iframe content blocked

我有一个页面,其中有一个使用以下代码的 iframe。

<iframe name="SL" src="https://sl.se/sv/" width="100%" height="870px"></iframe>

它一直运行没有任何问题,但昨天它在 iframe 中变成了一个空白页面。我没有更新页面中的任何内容,因此它一定是 iframe src 中的某些内容由于某种原因被阻止。是否有另一种方法可以让此页面像 iframe 一样显示在内部,但需要使用其他代码?

如果您看到浏览器的控制台,它会显示:

Refused to display 'https://sl.se/sv/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

这意味着他们不允许在域外的 iframe 中加载资源。有关详细信息,请查看 this