Iframe
The iFrame macro enables you to display a web page within a Confluence page. You can also combine the iframe macro with our CSS Style Sheet macro to customize its appearance.
The iFrame macro is configured by the Confluence administrator. By default, it is rendered with the sandbox attribute.
Learn more about the Iframe macro configuration before you begin.
Walkthrough
Watch our video walkthrough to see the Iframe macro in action.
Add an Iframe to your page
If you want the iFrame to be responsive and adapt to the size of the page, you can combine it with our CSS Style Sheet macro.
Known issues
Content that previously worked no longer displays
The Iframe macro shows a blank area instead of imported content. This Iframe used to work as expected but now shows a blank box.
There are two reasons why content that used to display in the Iframe macro may no longer show in a Confluence page.
- The administrators of the website have set an option on their server that prohibits the inclusion of their site's content in Iframes. This setting is called the The X-Frame-Options response header, as described by Mozilla .
The browser is stopping the inclusion of content from another site for security reasons. This is a feature of modern browsers called Mixed Content Blocking as described by Mozilla.
Solutions
If you are affected by this problem, try one of the following:
- Use
https://at the start of the Iframe source web address e.g. https://www.adaptavist.com - this can help with mixed content blocking. - Use an alternative method of importing content, such as the HTML Include macro - please read the caveats on the linked page carefully.
- Remove the Iframe macro from the page and link directly to the content instead.