# readthedocs 호스팅 사이트에 Discourse 댓글 임베드하기

**URL:** https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973
**Category:** Support
**Tags:** embedding
**Created:** [11월 8, 2019, 11:44오후 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973 "2019-11-08T23:44:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ChloePrize](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chloeprize/32/158023_2.png) [@ChloePrize](https://meta.discourse.org/u/ChloePrize)
#### Post date: [11월 8, 2019, 11: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의 customize/embedding에서 제공하는 JavaScript를 사용했지만, "Discussion Loading"만 렌더링되었습니다.

링크:  
[포럼](https://forum.zenko.io/)  
[Discourse 임베드 URL](https://zenko.readthedocs.io/en/documentation-zenkoio-111-forumcommentsinreadthedocs/index.html) (readthedocs 사이트)

페이지를 검사해 보니 콘솔에 다음 **에러 메시지** 가 표시되었습니다:

`Invalid X-Frame-Options: “ALLOWALL” header from “[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)” loaded into “[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)”.`

**도움이 된다면:**

```
Request URL:https://forum.zenko.io/embed/comments?embed_url=https%3A%2F%2Fzenko.readthedocs.io%2Fen%2Fdocumentation%2FZENKOIO-111-ForumCommentsInReadTheDocs%2Findex.html
Request method:GET
Remote address:72.52.80.11:443
Status code:
400
Version:HTTP/2.0

```

비슷한 문제를 겪으신 분이나 도움을 주실 분이 계신가요?

감사합니다! 😊

---

<div class="post-metadata">

### Author: ![Tokapeb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tokapeb/32/162462_2.png) [@Tokapeb](https://meta.discourse.org/u/Tokapeb)
#### Post date: [11월 28, 2019, 1:04오후 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973/2 "2019-11-28T13:04:08Z")

</div>

다샤님, 안녕하세요.

댓글에 남겨주신 사이트를 확인해 보았는데, 문제를 해결하신 것 같습니다. 어떻게 해결하셨는지 간단히 설명해 주실 수 있을까요? 저도 같은 문제를 겪고 있어서, 다른 분들에게도 도움이 될 것 같거든요.

감사합니다!

---

<div class="post-metadata">

### Author: ![ChloePrize](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chloeprize/32/158023_2.png) [@ChloePrize](https://meta.discourse.org/u/ChloePrize)
#### Post date: [12월 5, 2019, 10:12오후 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973/3 "2019-12-05T22:12:48Z")

</div>

안녕하세요 @Tokapeb  
정확히 어떤 부분이 문제를 해결했는지는 단정하기 어렵지만, 기억에 따르면 문제를 해결하기 위해 두 가지를 수행했습니다:

- 포럼 사이트 설정에서 `cors origins`에 내 사이트 URL을 추가했습니다.
- 스크립트의 discourse embed URI를 canonical로 변경했습니다(이전에는 canonical이 아니었습니다).

도움이 되길 바랍니다 🙂

---

<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: [9월 14, 2023, 1:29오전 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973/4 "2023-09-14T01:29:43Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [9월 14, 2023, 5:41오전 UTC](https://meta.discourse.org/t/embed-discourse-comments-into-readthedocs-hosted-site/132973/5 "2023-09-14T05:41:58Z")

</div>


