Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to embed Confluence pages in other websites

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:

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.

1 answer

1 accepted

0 votes
Answer accepted

Hi @Samuel_Roberts,

I guess the browser console reports an error like:

Refused to display '' 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.{contentId}?expand=body.export_view.webresource.tags.all

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.

Best, Tobias

Thank you for this answer, Tobias!

@Samuel_Roberts just came across this question. You may want to give our app Embedder for Confluence a try. It is not perfect due to the API limitations, but it works.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Table Row Highlighter - CSS Hack

(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...

270 views 0 3
Read article

Community Events

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

Events near you