Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence: iFrame not displaying website

Jeremiah Landi
Contributor
January 25, 2016

Hello,

I have added the iFrame HTML macro to my page. When I try to add a website it just shows a white box. I have tried adding:

But it always displays a white empty box (in preview and live on page). Any ideas?

I can add internal links just fine.

 

2 answers

1 accepted

4 votes
Answer accepted
Nelson Carranza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 25, 2016

Hi Jeremiah,

Have you add the url to the whitelist?

https://confluence.atlassian.com/doc/configuring-the-whitelist-381255821.html

 

Regards

Nelson

Dominik Wittassek December 6, 2017

Tags in this document are wrong.
I can't configure the whitelist in Confluence Cloud, there is no option.

SimonP July 12, 2018

Did you ever find a solution? Im getting google sites loading but one of our own not loading?

J-O-R-G-E September 18, 2018

I am also on the same boat. I have Bitbucket on whitelist but it does not load on iframe

<div>

<iframe> ...

...

</div>

Like Rose likes this
andrea06590
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 16, 2018

if you still want a solution I have one using a JS script I found on another article ;) 

 

<script>

  $(document).ready(function() {

    $.ajax({

        method: 'GET',

        url: 'https://URL.com/roadmap.html',

        dataType: 'text',

        success: function(data) {

        var iframe = document.getElementById('result');

        iframe = iframe.contentWindow || ( iframe.contentDocument.document || iframe.contentDocument);

 

        iframe.document.open();

        iframe.document.write(data);

        iframe.document.close();

      }

    });

  });

</script>

0 votes
Ben Cutting
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 29, 2025

The issue usually happens because many external sites block being loaded in an iframe with security headers like X-Frame-Options. That’s why pages like Google won’t show up. A better test is to use a site that allows embedding. I actually wrote about similar iframe problems on my site earthstonerock.com
,which might give you some extra pointers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events