Some of our Confluence pages are great reference resources that we would like to embed within our Intranet.
Even on ubiquitous WordPress, iframing the content appears not to be possible. Evidently, this is because several years ago Confluence included new headers in pages to prevent clickjacking. Described in this knowledgebase article: https://confluence.atlassian.com/confkb/confluence-page-does-not-display-in-an-iframe-827335781.html)
The article says there is a fix for server-based Confluence instances, but not for Atlassian Cloud (which is where we live). Does that mean there truly is no way to embed content in Confluence within other websites? Surely there must be a workaround for this.
I guess the browser console reports an error like:
Refused to display 'https://XXXX.atlassian.net/wiki/spaces/XXXX' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
The only workaround that I am aware of is to use the Confluence REST API to render your content. But please note that you need to put a lot of efforts into this.
This will return both the rendered content (export_view) and all the tags required to resolve the js and css webresources. However image src links have to be adapted and so on.
To summarize it - unfortunately there is no good and easy solution for this.
(Said in an infomercial voice) Has this ever happened to you? You are on a Zoom/Teams call, looking at a large table, and people are confused where on the table you are pointing (insert video of real...
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