Me Myself & C#

Manoj Garg’s Tech Bytes – What I learned Today

Fixing “This page contains secure and nonsecure items” warning in IE

Posted by Manoj Garg on July 17, 2009

Ever encountered “This page contains both secure and nonsecure items. Do you want to display the nonsecure items? ” in IE. Well I do and this pesky popup keeps bugging me now n then. Till today, I never bothered about it. I used to click “Yes” no matter what :D. I know it’s not always safe to do it but who cares 😀

CapturedImage_13

Today I was assigned a bug, in the application I am working on, which says that users are seeing this popup so many times and they are not happy about it. That got me thinking people do care about these pop ups as well :P.

Ne way, I had to find a solution to get rid of this warning. So after little Binging and Googling I found the solution. So thought about writing my findings though they are available in top 10 search results 🙂

The reason for this warning is that you are visiting a secure site (HTTPS site) and somewhere behind the scenes that site or page is trying to access a non secure resource be it a complete page or some image. That makes the browser assume that since you are inside a secure site, you should not be getting anything that’s not secure. Like many a times https pages have some images whose source is http for example http://mmyserver/myimages .

There are two ways you can get rid of this warning

  1. Change all reference of http to https in the page.
  2. Lower your guard in IE: IE has a setting which decide what the browser behavior in case of a non secure content coming while browsing a secure page. This setting is in “IE ==> Tools ==> Internet Options ==> Security Tab ==> Click Custom Level button” this will open up a list of options for various security settings for IE. Scroll this list to search for “Display Mixed Content” option. The “Prompt” radio option is selected by default. Change it to “Enable” option and click OK. and you are done. The change will take effect immediately.

Following are some of the links which helped me to solved me the issue:

1. http://ask-leo.com/can_i_get_rid_of_the_this_page_contains_both_secure_and_nonsecure_items_warning.html

2. http://www.sslshopper.com/article-stop-the-page-contains-secure-and-nonsecure-items-warning.html?jn948e2cf0=2#jotnav948e2cf0db15fcce0a996d225ead01c0

3. http://www.velocityreviews.com/forums/t152692-this-page-contains-both-secure-and-nonsecure-items.html

4. http://blogs.msdn.com/jorman/archive/2006/02/06/526087.aspx

5. http://www.wallpaperama.com/forums/windows-disable-this-page-contains-both-secure-and-nonsecure-items-t274.html

6. http://www.aspdeveloper.net/tiki-index.php?page=HTMLTipsSSLNonSecureWarning

Advertisements

6 Responses to “Fixing “This page contains secure and nonsecure items” warning in IE”

  1. Priyanka said

    Great finding manoj 🙂
    Smtimes i get too irritated by such pop-ups.
    Got a solution now. 🙂

    • Manoj Garg said

      🙂 but there is a catch. if you are enabling showing mixed content that means next time when ever you are visiting a secure site, you have to be little cautious to not download some unsecure data or clicking some unsecure links. You can choose to disable showing the unsecure content altogether to be on the safer side

      just my 2 cents 🙂

  2. daniel said

    hi

    are you using the statcounter plugin ? if so just edit the source code of the plugin and change all the http to https

    all the best

  3. Marcos said

    Hi, I had this problem on my site. It was a SRC=”” frame. IE complained about it, thinking it was out of the HTTPS context. I you use a SRC=”blank.html” reference to an empty page on your server, the message does not appear any more.

  4. breville juicer price…

    […]Fixing “This page contains secure and nonsecure items” warning in IE « Me Myself & C#[…]…

  5. Any right solution, like to add specific code so the security warning shouldn’t be popping up except fixing local your IE settings?

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: