# שימוש בדפים שפורסמו ב-iframes ב-Ghost

**URL:** https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198
**Category:** Support
**Created:** [10 בנובמבר,‏ 2022,‏ 7:06pm UTC](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198 "2022-11-10T19:06:40Z")
**Posts on this page:** 4
**Page:** 1

<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: [10 בנובמבר,‏ 2022,‏ 7:06pm UTC](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198/1 "2022-11-10T19:06:40Z")

</div>

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:

1. **DISCOURSE\_ENABLE\_CORS: true** in my app.yml

2. 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)

3. Published a page: [Are you a human? - n👀bish.me](https://noobish.me/pub/are-you-a-human)

4. 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/discourse-page/](https://story.pub/discourse-page/)

I have another thought to possibly use the Official Integration, but I think it works in the opposite direction ⁉…

> **[Official Ghost + Discourse Integration](https://ghost.org/integrations/discourse/)**
>
> Setting up Discourse with Ghost allows you to embed comment on your posts and pages & link your site to your community forum. Find out how 👉

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [10 בנובמבר,‏ 2022,‏ 7:13pm UTC](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198/2 "2022-11-10T19:13:52Z")

</div>

I don’t know, but there is a hidden site setting `allow_embedding_site_in_an_iframe` that you could try.

```plaintext
./launcher enter app
rails c
SiteSetting.allow_embedding_site_in_an_iframe=true
exit
exit

```

---

<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: [10 בנובמבר,‏ 2022,‏ 8:02pm UTC](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198/3 "2022-11-10T20:02:53Z")

</div>

WooHoo it worked! Thanks a million, @pfaffman!!

![Animation Money GIF](https://global.discourse-cdn.com/meta/original/4X/e/2/a/e2af036554b9dad691d73e9e34b9d9d36fd7acc9.webp)

---

<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: [10 בדצמבר,‏ 2022,‏ 8:03pm UTC](https://meta.discourse.org/t/using-published-pages-in-iframes-on-ghost/245198/4 "2022-12-10T20:03:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
