# 在 ReadTheDocs 托管的站点中嵌入 Discourse 评论

**URL:** <https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973>\
**Category:** Product Support\
**Tags:** embedding\
**Created:** [2019 年11 月 8 日 23:44 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973 "2019-11-08T23:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![ChloePrize](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chloeprize/32/158023_2.png) [@ChloePrize](https://meta.discourse.org/u/ChloePrize)\
发布日期： [2019 年11 月 8 日 23:44 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973/1 "2019-11-08T23:44:45Z")

</div>

大家好，

我一直在尝试将我们论坛的 Discourse 评论添加到我们的文档网站。  
我们在 ReadTheDocs 上托管文档。

我使用了来自 Discourse 自定义/嵌入的 JavaScript，但它只会显示“讨论加载中”。

链接：  
[论坛](https://forum.zenko.io/)  
[Discourse 嵌入 URL](https://zenko.readthedocs.io/en/documentation-zenkoio-111-forumcommentsinreadthedocs/index.html)（ReadTheDocs 网站）

我检查了页面，在控制台中发现了这条 **错误消息** ：

`无效的 X-Frame-Options: “ALLOWALL” 标头，来自“[https://forum.zenko.io/embed/comments?embed_url=https%3A%2F%…tsInReadTheDocs%2Freference%2Fobject_operations%2Findex.html](https://forum.zenko.io/embed/comments?embed_url=https%3A%2F%2Fzenko.readthedocs.io%2Fen%2Fdocumentation%2FZENKOIO-111-ForumCommentsInReadTheDocs%2Freference%2Fobject_operations%2Findex.html)”，加载到“[https://zenko.readthedocs.io/en/documentation-zenkoio-111-fo…commentsinreadthedocs/reference/object_operations/index.html](https://zenko.readthedocs.io/en/documentation-zenkoio-111-forumcommentsinreadthedocs/reference/object_operations/index.html)”。`

**如果这有帮助：**

```
请求 URL: https://forum.zenko.io/embed/comments?embed_url=https%3A%2F%2Fzenko.readthedocs.io%2Fen%2Fdocumentation%2FZENKOIO-111-ForumCommentsInReadTheDocs%2Findex.html
请求方法: GET
远程地址: 72.52.80.11:443
状态码:
400
版本: HTTP/2.0

```

有人遇到过类似问题或能提供帮助吗？

非常感谢！😊

---

_[View the full topic](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973)._
