在方形空间中嵌入光球

Embedding photosphere in squarespace

我正在尝试将光球嵌入到 Squarespace 中。

Google 地图工作正常,但不符合我的需要,看起来如下:

<iframe src="https://www.google.com/maps/embed?pb=!1m0!3m2!1sen!2sus!4v1471028758208!6m8!1m7!1sF%3A-hjcchX5MD5g%2FV03OAcggYUI%2FAAAAAAAAKeM%2FXwIrucnK4IQkwWbhxu9BrvOATMYZaMmKgCLIB!2m2!1d37.870246!2d-119.360704!3f125.91384035181916!4f6.045852307800146!5f0.7820865974627469" width="100%" height="800" frameborder="0" style="border:0" allowfullscreen></iframe>

相反,我想通过 sphereshere.net 嵌入他们的嵌入看起来如下但不起作用。

<iframe src="http://sphereshare.net/#!/e/c467ba7af9753ee287cd44550493e966" height="320" width="620" frameborder="0"></iframe>

我们认为问题是什么?

通常,在这种情况下,问题是在 iframe 中使用了 http 协议,而您仍然通过 https 登录到 Squarespace。您应该尝试在 登录时查看页面,确保您是通过 http 而不是 https 查看页面。如果您向页面提供 link,我也很乐意查看。

这样做的原因与浏览器安全性有关。在通过 https 查看父网站的同时通过 http 加载资源存在潜在的安全风险,因此浏览器不允许这样做。 Google 地图支持通过 https 加载(您可以看到您正在使用的 link,因为 Google 地图使用 https)。而 sphereshare.net 不支持 https,所以您使用的是 http。当登录到 Squarepace 时,您正在通过 https 加载网站,但通过 http 加载 sphereshare iframe,因此浏览器不允许它。

将来,希望您能够将 https 与 sphereshare 一起使用,然后它在任何一种情况下都可以使用。在此之前,您必须注销并将协议设置为 http 才能查看通过 http 加载的 iframe。