How to include an iframe in a Confluence page?

Hi, 

I want to add an iFrame link from JIRA Portfolio into a Confluence page.

 

<iframe src='https://jira.srv.<company_name.com>/secure/PortfolioSharedReportView.jspa?r=lydy9&t&e' width='640' height='400' style='border : 1px solid #ccc;'></iframe> 

I do not have the iFrame macro in my Confluence. I used HTML macro within which I pasted the iFrame link. But all that I see is an empty white box in preview and after saving. 

Is there a way to add this link to Confluence page?

TIA,

Bhakti

1 answer

2 votes

Hello,

There is a security header added to protect against clickjacking, that prevents Jira or Confluence pages from being displayed in an iframe inside HTML macro. You can disable clickjacking protection by following Confluence page does not display in an iframe KB, but we do not recommend it for security reasons. 

Alternatively, you can use some third-party plug-ins instead of HTML Macro without compromising security, like this one 

See How to put an iFrame into Confluence for more details.

Regards,

Igor

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,060 views 55 8
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