How to use Confluence Cloud in iFrame

Hello,

I would like to use Confluence Cloud environment in a iFrame. Is was wondering if this is possible and how it can be done?
I saw the next topic: https://confluence.atlassian.com/confkb/confluence-page-does-not-display-in-an-iframe-827335781.html
But I guess this is for the server version?

The error I get at this moment is: in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".

Can someone please help me? Or is there an other way in stead of using it in an iFrame?

Thanks in advance,
Dylan

4 answers

Perhaps you should talk about why you're trying to do this, so someone here can dissuade you. Hosting a webapp in another iframe is usually a bad idea, because most developers aren't going to design their application in such a way that it would work when rendered through an iframe.

Confluence heavily uses iframes as it is too, I can't imagine there'd be any easy way to make it happen.

Hello Steve,

Thanks for your quick answer. The reason I would like to do this is because we are having an application and we would like to have an integrated online community for all the users of the application. So that when they are in a process of our application, they can ask a question directly on that moment.

Is this enough info ?

Regards

Dylan 

I haven't attempted anything related with 'putting Confluence inside an iframe' since Confluence 3.x. I can't imagine it's become easier in the meantime. However it might be possible, I do not think that putting webapps inside other webapps via iFrame is a very good solution.

Confluence doesn't offer external 'gadgets' for you to use unfortunately.

I would strongly consider using the REST API to perform typical requests to get, create, update, and delete Questions content. You could probably quickly proof-of-concept it with a simple <form> set to POST. For instance, a little 'feed' gadget and a submission box could be constructed with a few lines of HTML and some JAVASCRIPT.

I have the same situation  as Dylan where we would like to display confluence pages via iframe to another site since the data in confluence pages are wiki.  Rest api would be good for pulling data from JIRA type scenario.  Anyone figure out how to do this?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

385 views 21 10
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