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

안녕하세요,

포럼의 Discourse 댓글을 문서 사이트에 추가하려고 시도하고 있습니다.
문서는 readthedocs에 호스팅하고 있습니다.

Discourse의 customize/embedding에서 제공하는 JavaScript를 사용했지만, "Discussion Loading"만 렌더링되었습니다.

링크:
포럼
Discourse 임베드 URL (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

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

감사합니다! :blush:

다샤님, 안녕하세요.

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

감사합니다!

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

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

도움이 되길 바랍니다 :slight_smile: