Iframes 无法工作

G’day all, I was wondering if Discourse supports <iframes>, I have been trying to embed multiple different websites into Discourse yet none seem to work. I’ve tried with Time and Date, Google Maps just to name a few without any success.

2 个赞

Did you add the domains to the allowed iframes setting?

5 个赞

Yes I did add the required domains for the iframes.

1 个赞

使用 安全模式 是否有效?

your.site.com/safe-mode

浏览器控制台中是否显示任何错误?

是帖子中添加了 iframe 但无法正常工作,还是根本没有添加?

能否分享您网站的链接?

2 个赞

这是网站地址:https://forum-aviationforumcommunity-6985.nodechef.com/latest

目前未显示任何错误,且已完整添加了 <iframes>

它们在安全模式下仍然无法工作。

1 个赞

这有更新了吗?

各位,

我似乎也无法让 iframe 工作。例如,YouTube 的 onebox 可以正常工作,但每当我们发布链接时,它们都不会显示如下:

在撰写帖子时,我可以看到链接左侧有一个加载圆圈,但最终它只会显示实际链接而不是 iframe。

我查看了其他几个帖子,并尝试了建议的故障排除(以安全模式访问网站,将特定域添加到允许的 iframe 管理员设置),但没有链接变成 iframe。

管理设置中是否有其他设置会阻止此功能正常工作?