# \`DISCOURSE\_ENABLE\_CORS\` 환경 변수를 설정하려면 어디로 가야 하나요?

**URL:** https://meta.discourse.org/t/where-i-should-go-to-set-the-discourse-enable-cors-env-variable/249632
**Category:** Support
**Created:** [12월 21, 2022, 11:45오후 UTC](https://meta.discourse.org/t/where-i-should-go-to-set-the-discourse-enable-cors-env-variable/249632 "2022-12-21T23:45:30Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [12월 26, 2022, 5:43오후 UTC](https://meta.discourse.org/t/where-i-should-go-to-set-the-discourse-enable-cors-env-variable/249632/14 "2022-12-26T17:43:48Z")

</div>

@mikeguo 디스코urs(Disourse) 토픽을 임베드하려는 사이트의 플랫폼이 무엇인가요?

예를 들어, [Wordpress](https://wordpress.org) 사이트인가요, 아니면 [Ghost](https://ghost.org) 블로그인가요?

대상 사이트의 게시물 URL을 제공해 주세요.

제가 볼 수 있는 것은 위 토픽의 코드 스크린샷에서 가져온 이 주소뿐입니다:

[https://e53c-185-143-220-5.eu.ngrok.io/](https://e53c-185-143-220-5.eu.ngrok.io/)

예를 들어, 저는 이 게시물에 설명된 대로 ‘DISCOURSE\_ENABLE\_CORS’ 환경 변수를 사용하여 디스코urs 포럼의 콘텐츠를 Ghost 블로그의 페이지에 표시했습니다…

> [@Ghost에서 iframes에 게시된 페이지 사용](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198/1):
>
> Anyone know the most elegant way (or any way, for that matter) I might be able to use my Published pages in iFrames on one of my Ghost sites? I have: DISCOURSE\_ENABLE\_CORS: true in my app.yml Added the Ghost site URL [https://story.pub](https://story.pub) in the CORS origins in my Discourse at [https://nOObish.me](https://nOObish.me) Published a page: [Are you a human? - n👀bish.me](https://noobish.me/pub/are-you-a-human) Added the iFrame \<iframe src="https://noobish.me/pub/are-you-a-human" width=100% height=700\>\</iframe\> on the page at … [https://story.pub/discour…](https://story.pub/discourse-page/)

그러나 위에서 게시하신 코드를 통해 사용하려는 기능은…

> [@\`DISCOURSE\_ENABLE\_CORS\` 환경 변수를 설정하려면 어디로 가야 하나요?](https://meta.discourse.org/t/where-i-should-go-to-set-the-discourse-enable-cors-env-variable/249632/13):
>
> iframe is created by official js script. I’m using the codes that are provided on /admin/customize/embedding, as blow: I need to keep the embedded parts consistent with the color pattern of my website, so I have to access the iframe althogh the iframe is not created by me.

…디스코urs 포럼의 토픽을 외부 사이트의 게시물(POSTS)로 임베드하려는 것임을 시사하고 있으며, 이는 다른 사용 사례입니다.

여기서 정확히 무엇을 하려는 것인지 더 잘 설명해 주셔야 합니다…

---

_[View the full topic](https://meta.discourse.org/t/where-i-should-go-to-set-the-discourse-enable-cors-env-variable/249632)._
