# Referer 임베딩 문제 - x가 x와 일치하지 않음

**URL:** <https://meta.discourse.org/t/referer-embeding-problems-x-does-not-match-x/214613>\
**Category:** Support\
**Created:** [1월 12, 2022, 7:51오전 UTC](https://meta.discourse.org/t/referer-embeding-problems-x-does-not-match-x/214613 "2022-01-12T07:51:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ufffd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufffd/32/246028_2.png) [@ufffd](https://meta.discourse.org/u/ufffd)\
**Post date:** [1월 16, 2022, 1:09오전 UTC](https://meta.discourse.org/t/referer-embeding-problems-x-does-not-match-x/214613/5 "2022-01-16T01:09:11Z")

</div>

이 사이트에서 `discourseEmbedUrl` 설정을 사용하려고 하고 있습니다. 제 댓글 컴포넌트는 [GitHub](https://github.com/hen-community/hencommunity.quest-blog/blob/main/components/comments/Discourse.js)에 있으며, 핵심은 다음과 같습니다:

```plaintext
    window.DiscourseEmbed = {
      discourseUrl: siteMetadata.comment.discourseConfig.url,
      discourseEmbedUrl: thread,
      discourseReferrerPolicy: 'no-referrer-when-downgrade',
    }

```

여기서 `thread = window.location.href`입니다.

설정들을 이것저것 바꿔보면서 지금은 Referer에 전체 URL이 들어오도록 만들었지만, 여전히 '일치하지 않습니다’라는 오류가 발생합니다. 이는 [블로그 페이지 하단](https://hencommunity.quest/blog/the-communication-the-community-and-you#discourse-embed-frame)에서 확인할 수 있습니다.

수정: 저는 2.8.0.beta10을 사용 중이었으나, 방금 2.8.0.beta11로 업데이트했는데도 여전히 동일한 문제입니다. 제가 생각할 수 있는 다른 변수는 이 Discourse 인스턴스가 원래 다른 URL에서 시작되어 이전(실제로는 포크)되었다는 점입니다. 하지만 그 외에는 모두 정상 작동하므로 이전 과정에서 문제가 생겼다고 생각할 이유는 없습니다.

---

_[View the full topic](https://meta.discourse.org/t/referer-embeding-problems-x-does-not-match-x/214613)._
