- What is SSL?
- Why SSL?
- PKI Overview
- SSL Certificate Features
- Ordering a Certificate
- What is a CSR?
- SSL Certificate Installation
- SSL Certificate Errors
- SSL Details
- Special Types
- Copying a Certificate
Most Popular
- How to use SSL Certificates with Exchange 2007
- More Discussion About How Firefox 3 Handles SSL Certificates
- The Most Common Java Keytool Keystore Commands
- SSL Host Headers in IIS 7
- How to Create a Self Signed Certificate using Java Keytool
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?"

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, iframes, Flash, and JavaScripts. If you are having trouble finding what elements are loading from http instead of https, try WhyNoPadLock.com. Once you found the elements, there are a few ways to fix them:
1. Change all URLs to https
Just open up the offending web page and search for http://. Change the references on all images, iframes, Flash, and Javascripts to https://. For example.
<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:
- Go to Tools, Internet Options.
- Select the "Security" Tab and then click on the "Custom Level" button.
- Scroll down until you see the option: "Display mixed content". Select "Enable".
- 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.
Posted on September 07, 2007
Posts: 46
Reply #49 on : Tue May 14, 2013, 04:27:16
Posts: 46
Reply #48 on : Wed March 27, 2013, 07:36:55
Posts: 46
Reply #47 on : Wed January 11, 2012, 04:59:11
Posts: 46
Reply #46 on : Thu January 05, 2012, 13:17:43
Posts: 46
Reply #45 on : Wed November 30, 2011, 05:54:51
Posts: 46
Reply #44 on : Tue October 18, 2011, 07:02:06
Posts: 46
Reply #43 on : Wed October 05, 2011, 02:02:24
Posts: 3
Reply #42 on : Thu September 15, 2011, 06:56:18
Posts: 46
Reply #41 on : Thu September 15, 2011, 06:42:39
Posts: 46
Reply #40 on : Thu September 15, 2011, 06:16:58
Posts: 46
Reply #39 on : Wed September 07, 2011, 03:06:03
Posts: 46
Reply #38 on : Sat July 02, 2011, 08:34:21
Posts: 46
Reply #37 on : Tue June 14, 2011, 15:18:42
Posts: 46
Reply #36 on : Fri April 29, 2011, 03:54:03
Posts: 46
Reply #35 on : Fri April 29, 2011, 02:46:04
Posts: 46
Reply #34 on : Sun April 10, 2011, 16:50:17
Posts: 46
Reply #33 on : Fri April 01, 2011, 06:25:14
Posts: 46
Reply #32 on : Tue March 29, 2011, 12:31:55
Posts: 46
Reply #31 on : Mon February 28, 2011, 10:05:43
Posts: 46
Reply #30 on : Fri February 18, 2011, 11:32:53
Write a comment