Most Popular

Login:

Your Login Details

Forget Your Password?

Create an account

Stop the "page contains secure and nonsecure items" warning

Are your SSL web pages plagued by the browser warning "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"

Do you want to display nonsecure items?

This is a common error that occurs when some element on a secure web page (one that is loaded with https:// in the address bar) is not being loaded from a secure source. This usually occurs with images, frames, and JavaScripts. There are a few ways to fix it:

1. Change all links to https

Just open up the offending web page and search for http://. Change the references to https://.

<img src="https://www.domain.com/image.gif" alt="" />

This may not work if you are loading an image from another site that does not have SSL set up. Also, with this method you'll be loading SSL images even when the client is loading from a non-secure page. This will add extra processing load on the server and client. This is definitely not recommended for a high volume site.

2. Change all links to // or make them relative

Rather than changing all the links to https://, change them to just //

<img src="//www.domain.com/image.gif" alt="" />

Alternatively, if the images or scripts are located on the same domain, you can access them relatively, rather than absolutely:

<img src="image.gif" alt="" />

Using this method, the browser will know that it must load the image securely if the web page is being loaded securely but it will also load the image normally if the page is not being accessed securely. The image will still need to be available on the other server securely. This is likely the best method of getting rid of the pesky "Do you want to display the nonsecure items?" warnings.

3. Change the browser settings

It is best to change the code of the page that is giving the error, but if you don't have access to change the code, you can always tell your personal web browser not to display that message. To do so follow these steps for Internet Explorer:

  1. Go to Tools, Internet Options.
  2. Select the "Security" Tab and then click on the "Custom Level" button.
  3. Scroll down until you see the option: "Display mixed content". Select "Enable".
  4. Click Ok. Then you will get a "Security Warning" pop-up. Click Yes.

One common reason that this warning shows up is using normal Google Analytics code on a secure page. It is a simple fix to enable Google Analytics on a page using SSL.

 Digg  Slashdot  del.icio.us  Reddit  furl

Posted on September 07, 2007
Eileen
Posts: 6
Comment
Yeah!
Reply #6 on : Wed August 20, 2008, 10:27:35
Perfect! Thanks for posting this.
Gustavo Sanchez
Posts: 6
Comment
Clear and Concise
Reply #5 on : Sat August 16, 2008, 17:15:42
Many Thanks...this is a invaluable resource in the web...
Robin
Posts: 6
Comment
Thanks!
Reply #4 on : Thu August 14, 2008, 10:29:30
Very Helpful!
candy
Posts: 6
Comment
Thank You!
Reply #3 on : Tue April 01, 2008, 20:47:14
Thank You, Thank You, Thank You. You just saved me weeks worth of work on my site!
Robert
Posts: 6
Comment
Re: Stop the "page contains secure and nonsecure items" warning
Reply #2 on : Fri February 08, 2008, 18:43:04
You'll need to contact the website that is running dashboard aim and they should be able to fix the problem using the techniques listed above. Or you can just accept the insecure items by clicking "Yes". Or you can follow step 3 on this page to get rid of the message altogether.
Anonymous
Posts: 6
Comment
Re: Stop the "page contains secure and nonsecure items" warning
Reply #1 on : Tue February 05, 2008, 03:32:14
i can not get on my dashboard aim, it says invalid password and when i go to dashboard aim this page contains secure and nonsecure comes up.
How can i use dashboard aim again?

Write a comment


If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code:
 
Post Comment