Jesper M. Christensen

SharePoint and Security

Browser error: ”Only secure content is displayed” on SharePoint 2010 site


I recently ran into this issue after the migrating of a SharePoint Server 2010 site to a new domain name.

At the front page our Internet Explorer 9 showed this error message:

-and the people using this site was annoyed as they needed to click the “Show all content” button each time they visited the SharePoint site.

This error appears if you access a SSL encrypted site (https://) and some elements or content on the page is unencrypted (http://). IFRAMES, images, scripts and other elements can be causing this to happen, but in my case I couldn’t see any difference just by looking at the page or examining the HTML source.

Instead of disabling this message box (by allowing the browser always to show unsecure content – please do not do that) I performed the following steps to find out what was causing this error.

 

  1. I visited the SharePoint site and saw the error message in the bottom of the screen
  2. I entered the build-in “Developer Console” feature of Internet Explorer 9 by hitting F12


  3. I refreshed the SharePoint page by hitting F5
  4. On the developer console these lines appeared:

Excellent – here I had the “root of the problem”

I hope this post helps others with the same problem

 

 

 

 

Advertisements

5 responses to “Browser error: ”Only secure content is displayed” on SharePoint 2010 site

  1. Pete Maller December 20, 2011 at 18:38

    Thank you very much! The “secure content” error is such a nuisance and this is a very helpful method for getting to the bottom of its cause.

  2. fv February 11, 2012 at 01:23

    This is a great discovery. Can you tell me how do you fix it. I am working on Sharepoint online. Currently I want to display exteral web in page viewer webpart. so it’s the same like you( https: mixed http). I don’t know how to fix it. Would you like to share your solutions?

  3. drsuds December 6, 2012 at 22:36

    It’s annoying because the base url is set to https at my corp and my iframe content is http, no access to https. It’s a side project and I’d never get access to such a thing. Grr. So even if I pull up my iframe with https in https mode, as soon as you change pages in sharepoint it produces the nag message again. pfft.

  4. alex March 5, 2013 at 17:28

    In my case, I was linking to microsoft CDN for jQuery, bringing in the .js file and linking it internally fixed this issue for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: