Using published pages in iframes on Ghost

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 in the CORS origins in my Discourse at https://nOObish.me

  3. Published a page: Are you a human? - nOObish.me

  4. Added the iFrame <iframe src="https://noobish.me/pub/are-you-a-human" width=100% height=700></iframe> on the page at …

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

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

./launcher enter app
rails c
SiteSetting.allow_embedding_site_in_an_iframe=true
exit
exit
3 Likes

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

Animation Money GIF

1 Like