Forums

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

How to include an iframe in a macro view?

Laura Gomez
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!
April 25, 2018

I want to include an iframe in my macro view, but when I install my addon it renders all the page without the iframe. This is how the .hbs looks:

<div id="macro">

  <p>{{url}}</p>

  <iframe src="{{url}}" noborder="0" width="1200" height="800" scrolling="yes" seamless></iframe>

</div>

{{url}} is being passed as param and is rendered nicely as a paragraph but the iframe is not rendered (tried also with a static src, same results). I must be missing something …

1 answer

1 accepted

1 vote
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2018

Hi Laura,

Do you happen to be using Confluence Cloud? I noticed the 'cloud' tag on your post. If so, it's not possible to use iFrames in Confluence Cloud as a result of Clickjacking protection being enabled:

It is not possible to disable this.

If you're not using Cloud please confirm your version and I can have a look.

Regards,

Shannon

Laura Gomez
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!
April 26, 2018

Good to know! thanks, yes I was trying that approach with confluence cloud ...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events