Why is Chrome reporting a secure / non secure warning when no other browsers aren't?

SecurityGoogle Chrome

Security Problem Overview


When I go to our web site through HTTPS mode, Chome is reporting an error saying that the page contains secure and not secure items. However, I used Firebug, Fiddler, and HttpDebuggerPro, all which are telling me that everything is going through HTTPS. Is this a bug in Chrome?

Sorry but I'm unable to give out the actual URL.

Security Solutions


Solution 1 - Security

A bit late to the party here but I've been having issues recently and once I had found a http resource and changed it was still getting the red padlock symbol. When I closed the tab and opened a new one it changed to a green padlock so I guess Chrome caches this information for the lifetime of the tab

Solution 2 - Security

Current versions of Chrome will show the mixed content's URL in the error console. Hit CTRL+Shift+J and you'll see text like:

"The page at https://www.fiddler2.com/test/securepageinsecureimage.htm contains insecure content from http://www.fiddler2.com/Eric/images/me.jpg."

Solution 3 - Security

I was having the same issue: Chromium showing the non-secure static files, but when everything was http://.

Just closing the current tab and re-opening the page in another new tab worked, so I think this is a Chromium/Chrome bug.

Cheers,

Diogo

Solution 4 - Security

Using Chrome, if you open up the Developer Tools (View > Developer > Developer Tools) and bring up the Console and choose to filter to warnings, you'll see a list of offending URLs.

You'll see something like the following if you do have insecure content

The page at https://mysite/ displayed insecure content from http://insecureurl.

For the best experience in finding the culprit, you'll want to start your investigation in a new tab.

Solution 5 - Security

It is possible that a non-secure URL is referenced but not accessed (e.g. the codebase for a Flash <object>).

Solution 6 - Security

I ran into this problem when Jquery was being executing a a few seconds after page load which added a class containing a non-secure image background. Chrome must continually to check for any non-secure resources to be loaded.

See the code example below. If you had code like this, the green padlock is shown in Chrome for about 5 seconds until the deferred class is applied to the div.

setTimeout(function() {	
	$("#some-div").addClass("deferred")
    }, 5000);


.deferred
{
    background: url(http://not-secure.com/not-secure.jpg"
}

Solution 7 - Security

Check the source of the page for any external objects (scripts, stylesheets, images, objects) linked using http://... rather than https://... or a relative path. Change the links to use relative paths, or absolute paths without protocol, i.e. href="/path/to/file".

If all that if fine, it could be something included from Javascript. For example, the Google Analytics code uses document.write to add a new script to the page, but it has code to check for HTTPS in case the calling page is secure:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

Solution 8 - Security

On the release of Chrome version 53 on Windows, Google has changed the trust indications to initiate the circle-i. Afterward, Google has announced a new warning message will be issued when a website is not using HTTPS.

> From 2017 January Start, Popular web browser Chrome will begin > labeling HTTP sites as “Not Secure” [Which transmit passwords / ask > for credit card details]

Solution 9 - Security

If all your resources are indeed secure, then it is a bug. http://code.google.com/p/chromium/issues/detail?id=72015 . Luckily it was fixed.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPaul GoView Question on Stackoverflow
Solution 1 - SecurityGeorgio_1999View Answer on Stackoverflow
Solution 2 - SecurityEricLawView Answer on Stackoverflow
Solution 3 - SecuritydiogobaederView Answer on Stackoverflow
Solution 4 - SecuritymikegradekView Answer on Stackoverflow
Solution 5 - SecurityQuentinView Answer on Stackoverflow
Solution 6 - SecurityJames LawrukView Answer on Stackoverflow
Solution 7 - SecurityDisgruntledGoatView Answer on Stackoverflow
Solution 8 - SecurityRoshan PadoleView Answer on Stackoverflow
Solution 9 - SecurityBozhoView Answer on Stackoverflow