如何嵌入来自https://datastudio.google.com/的iframe?

目前在正确嵌入 https://datastudio.google.com iframe 时遇到困难。我已经将 https://datastudio.google.com 添加到允许的 iframe 列表中。我还需要做什么?

谢谢!

首先,请确保 https://datastudio.google.com/ 是您添加的 iframe 的 src 属性的正确路径。如果路径正确,您可能遇到的问题是,您在将 iframe 添加到 Discourse 帖子后,才将其添加到了 allowed iframes 设置中。如果是这种情况,您需要点击帖子的“Rebuild HTML”按钮,让 Discourse 重新加载 iframe:

如果这是关于我们托管的网站,请随时联系我们的支持团队解决此问题。我们会查看 iframe 的具体情况。

5 个赞

太好了,谢谢你,Simon!问题在于帖子是在设置之前发布的。在重建 HTML 后进行强制刷新就解决了。非常感谢。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.