It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Embedding Confluence pages in another site

Helen Griffith Jul 12, 2016

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 Leader 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

Helen Griffith Jul 13, 2016

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 Leader Jul 14, 2016

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

Davin Studer Community Leader Jul 14, 2016

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

0 votes
Nic Brough [Adaptavist] Community Leader Jul 12, 2016

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.

Helen Griffith Jul 13, 2016

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

946 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you