Pages

Monday 19 December 2011

Disable the “Insecure Content” Warning in Google Chrome

Google Chrome - Insecure Content


When you open a secure (https) website in Google Chrome, the browser may sometimes display a security warning that says – “This page has insecure content.”


A web page contains several CSS and JavaScript files and these may be getting served from different locations. If the page is served over https but the associated files are served from a non-secure http website, the browser will throw the “insecure content” warning. Such a feature is present in IE as well though they call it mixed content.


If you are curious to know why Google, Twitter, Google Docs and other sites display the insecure content warning, open any of these sites in Chrome and press Ctrl + Shift + J. The developer’s console will open in the lower half and you’ll instantly know the files that have caused that annoying insecure content warning.


For instance, the Facebook website serves most of the files from facebook.com over https but it loads the jQuery JavaScript library from googleapis.com over http which leads to that security warning.


Unlike IE, Google Chrome doesn’t offer an easy option to disable these warnings but you can make use of a command-line switch to quickly turn them off.


Just right-click the Google Chrome icon on your desktop, or inside the Windows Start Menu, choose Properties and add the switch “--allow-running-insecure-content” to the target box. Restart Chrome to apply the changes and you won’t see that yellow bar again.

1 comment: