Iframe allow 属性不生效

我有这个域名:https://codesandbox.io/。这难道不够吗?我在 Discourse 中找到了这段代码,它只白名单了一些 iframe 属性:

如果我包含 height 和 weight 属性,iframe 就能正常工作,但我也想允许其他属性。

有没有办法允许所有 CodeSandbox iframe?我以为只包含域名就能生效。

谢谢!

编辑:

[quote=“dax, post:2, topic:127383”]
确认一下,你是在白名单中添加了 iframe 的 URL(https://codesandbox.io/embed/codesandbox-frontity-rnclp)吗?如果没有,请搜索站点设置中的 allowed iframes。[/quote]

我尝试将这个 URL 添加到白名单中,但仍然不起作用。

3 个赞