How to use Confluence Cloud in iFrame


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:
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,

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 ?



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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

1,039 views 23 13
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