Showing posts with label ssl security https warning "mixed content". Show all posts
Showing posts with label ssl security https warning "mixed content". Show all posts

12 Sept 2011

Avoiding SSL mixed content warning in https pages

When opening a page using https you can get SSL warnings because the page mixes secure (https) and non-secure content (http). This can happen for many reasons, e.g. javascript inclusion like Facebook plugins or images from 3rd party hosts.

A simple solution to avoid this is to simply remove the protocol (http or https) from the url and start it with //

Example:
//connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID_HERE&xfbml=1

instead of

http//connect.facebook.net/en_US/all.js#appId=YOUR_APP_ID_HERE&xfbml=1