Confluence: iFrame not displaying website

Jeremiah Landi 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.

 

3 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 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
Nak Ustad May 27, 2023

Sometime I also face the same problem with my work. I have seen many blogs which the good tips. You can check their to get solution.

0 votes
Josen Mark May 29, 2021

You can try this and whenever user surfing your website the request will also goto to the target website.

<iframe src="your website target" title="Title"></iframe>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events