Embedding Confluence pages in another site

We want to embed an entire Confluence page in another site—bloomfire to be precise. Is this possible?

2 answers

1 vote
Davin Studer Community Champion Jul 13, 2016

You cannot iframe a ?????.atlassian.net site and have it work with modern browsers because of the X-Frame-Options HTTP header. It is set to only allow iframeing from the same origin. Most newer browsers will respect this HTTP header. It will work only OLD browsers though ... but then the site won't work.

 

image2016-7-13 11:19:41.png

Thanks Davin... Shame. I guess that explains the problem so we can give up trying, but disappointing... I wonder if the response header can be ignored by the target site?!

Davin Studer Community Champion Jul 14, 2016

It's your browser that is respecting the X-Frame-Options header.

Davin Studer Community Champion Jul 14, 2016

Maybe Atlassian can turn that header off for your site? Probably not though.

0 votes

Most people would reach for an iframe here, but that has the problem that it's going to pull in everything - header, footer and all the rest of the structure, and when people are asking for this, they usually mean that they only want the page.  It also creates problems in that the server holding the iframe and the user reading the page have to have full and complete access to Confluence in order to render everything correctly, and things like proxies, rewrites and firewalls almost always get in the way.

The other way to do it is by having something on the other site that can understand Confluence data and re-render the pieces you need.  This is complex - any system can fetch a Confluence page, via html or over REST, but it has to be coded to understand it.  The html is hard to strip back to just the content that's come out.  REST gives you the raw page, but then you need to understand how the macros and dynamic content are generated.  Either way, it's not easy to do, and I'm not aware of anything that does it off-the-shelf.

Thanks Nic... I'm less worried about getting everything displaying, the problem is more that nothing at all is appearing. Weirdly I can see the page in the frame source, but nothing in the page itself.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

259 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you