# 我的 iframe 在编辑器中显示，但在公开帖子中不显示

**URL:** <https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611>\
**Category:** Support\
**Created:** [2021年十月29日 23:43 UTC](https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611 "2021-10-29T23:43:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)\
**Post date:** [2021年十月29日 23:43 UTC](https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611/1 "2021-10-29T23:43:44Z")

</div>

我已将 Facebook 加入白名单以插入视频 iframe。  
iframe 在编辑器中显示，但在公开帖子中不显示。

 ![Jp8Rs1GXWj](https://global.discourse-cdn.com/meta/original/3X/c/7/c7c74c0156644c834d171c1658e176f25d10803b.jpeg)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021年十月29日 23:47 UTC](https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611/2 "2021-10-29T23:47:05Z")

</div>

重新加载包含此帖子的主题后，请检查浏览器日志（F12 → 控制台）。

---

<div class="post-metadata">

**Author:** ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)\
**Post date:** [2021年十月29日 23:49 UTC](https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611/3 "2021-10-29T23:49:40Z")

</div>

我已经完成了。  
F12 显示这是内容策略问题。

我的插入代码使用了来自 **business.facebook** 的域名。  
我将其更改为其他域名，现在正常了。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十一月28日 23:50 UTC](https://meta.discourse.org/t/my-iframe-display-in-editor-but-not-display-on-public-post/207611/4 "2021-11-28T23:50:16Z")

</div>

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