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?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's your browser that is respecting the X-Frame-Options header.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe Atlassian can turn that header off for your site? Probably not though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.