Page Viewer Web Part in SharePoint Online/2013/2016

Here we will discuss Page Viewer Web Part SharePoint. The page viewer web part is the same for SharePoint online, SharePoint 2013 or SharePoint 2010.

Page Viewer Web Part in SharePoint

SharePoint Page Viewer Web Part is an out of box web part provided by Microsoft. By using this web part you can show a web page, file or a folder in a SharePoint Page. But you can use the page viewer web part only in a browser that supports the HTML IFRAME element.

And you can display a file or a folder in Internet Explorer. The Page Viewer Web Part displays content asynchronously from the rest of the page.

To add page viewer web part in a page, Open SharePoint site and then Edit the page and then click on Add a Web Part. Then from the Web Part categories Select Media and Content. From the Media and Content Web Part categories select Page Viewer web part. Then click on Add.

page viewer web part SharePoint
page viewer web part SharePoint

Once you will add the web part now you can configure the web part by clicking on open the tool pane link on the web part. Once you will click on open the tool pane link, the Page Viewer properties dialog will open. From the first section, you can choose from a radio button list what you want to display like Web Page, Folder or File. Suppose you will select the Web Page than in the Textbox put the URL of the webpage as shown in the figure below.

page viewer web part SharePoint online
page viewer web part SharePoint online

Now the Web Page will appear inside the Page Viewer web part. You can also set all the other properties for the web part like here I have changed for width and height. The page looks like below:

page viewer web part SharePoint 2013
page viewer web part SharePoint 2013

Only secure content is displayed error in SharePoint Online page viewer web part

This SharePoint tutorial, we will discuss how to solve Only secure content is displayed error in SharePoint. The error comes while using Page viewer web part in SharePoint Online or SharePoint 2013/2016.

Recently I was using page viewer web part in SharePoint Online site. I was displaying a URL inside the page viewer web part in a web part page. But in IE it was showing error as:

Only secure content is displayed sharepoint
Only secure content is displayed sharepoint

Only secure content is displayed. And once I click on Show all content. Then only it will show the content from the page viewer web part.

Only secure content is displayed sharepoint

Here below are two ways I resolved the issue “Only secure content is displayed”.

Options-1:
Inside my SharePoint Online page viewer web part, I was trying to show https://www.enjoysharepoint.com URL.

Since SharePoint Online site is an https site and this one is an HTTP site. It was showing that warning message. The page viewer web part URL was like below:

Only secure content is displayed sharepoint

When I change the URL to an “https” URL. It started showing the page without the warning message.

Option-2:
The other option is we can disable the warning message in the browser itself. Open Internet Explorer -> On the Tool menu, click Internet Options -> Click the Security tab and then click Custom level -> In the Settings box, scroll down to the Miscellaneous section, and under Display mixed content choose Enable.

It looks like below:

sharepoint online only secure content is displayed
Only secure content is displayed

This is how to solve Only secure content is displayed error which comes in SharePoint Online page viewer web part.

You may like the following SharePoint tutorials:

This SharePoint tutorial explains, how to use page viewer web part in SharePoint Online or SharePoint 2013/2016.

>