I have an internal company web site that serves custom content as well as embedded sites - e.g. Google calendar. The embedding is done via iframes so that css and javascript remain self-contained.
I would like to embed my Confluence home page into my site. I have looked through the REST API and can successfully retrieve JSON responses - e.g. http://confluence.mycompany..com/rest/api/content?spaceKey=TS&expand=body.view.value and understand what's being returned.
Two questions
Has anyone done this?
Again, the use iFrames for self-containment is important.
Thanks
Rob
Community moderators have prevented the ability to post new answers.
We have recently released an add-on for this, 'Embedder for Confluence' - you may want to take a look.
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.
What are then the options to embed a page from the server version of Confluence ?
Thanks for your help,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc Berger, we haven't come across any credible options that would embed confluence server pages. There are always some kind of hacks but they are just that - 'hacks' & do not guarantee a seamless user experience.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer @Anand Inamdar. Too bad :( Please let us know when there a feature will be released.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answer got updated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why don't you just
<iframe src="my-page's-url-here"></iframe>
Take a look here to remove restriction in headers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the src attribute but get the following error:
Refused to display 'http://confluence.mycompany.com/display/MS/MySupportPage' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check my edited answer again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the info, although I'm a bit confused. One article states that the "recommended" approach is to disable security on the Confluence server; another article states that this is dangerous to do and not recommended
I have used proxy programs to pull the html documents and then "manually" load into the iFrame, but the context of the page is completely lost since all CSS and JS files are based on relative paths.
Is there a Client (programmatic) way to handle this without modifying server entries. Also, modifying the server is the admin's domain and I'm sure I'll get grief
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.