DISPLAYING HTTP CONTENT IN HTTPS PAGESMay 10, 2016 / by Marco / Categories : Technology, website, Websites
This week we had to look at an issue with displaying HTTP (insecure) content in a HTTPS (secure) page. According to a number of sites, different browsers by default don’t allow this as the HTTPS page is secure and displaying non-secure content is a no-no. This is called displaying MIXED CONTENT.
The error message you would see in the browsers developer console would be something like:
Mixed Content The page at https://website was loaded over HTTPS but requested an image http://website/image.gif This content should also be served over HTTPS.
The recommended solution is to make sure that all the HTTP content is changed to HTTPS so that everything on the HTTPS page is encrypted. This is a very tedious task. The way I solved this issue was to include a special meta tag at the header of the page to upgrade all HTTP links to HTTPS automatically.
The one I used was:[codesyntax lang=”php”]
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Limit to 5 sponsors.
OTHER ARTICLES YOU MAY LIKE
Want to buy the cheapest video capture card with a decent video quality output? People have been raving about this USB 2.0 Video Capture card that seems to do the job for video capturing and streaming. There’s no brand name and it’s just called Video Capture. You can buy this unit from here: You can […]read more
It’s been over 8 months since our website URL was blocked on Facebook. We tried different methods to get it unblocked and this week we managed to unblock it. You will now notice our Facebook page is displaying our old posts. Basically, Facebook blocked our website URL businesslegions.com because the link goes against their Community […]read more