DISPLAYING HTTP CONTENT IN HTTPS PAGES
May 10, 2016 / by Marco / Categories : Technology, website, WebsitesThis 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:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
OTHER ARTICLES YOU MAY LIKE
THE BEST WOOCOMMERCE AFFILIATE AFFILIATE RETAILER PLUGIN FOR MAXIMUM PROFITS
In today’s highly competitive e-commerce landscape, leveraging the power of affiliate marketing has become a crucial strategy for online retailers to maximize their profits. And when it comes to running an efficient and lucrative affiliate program on your WooCommerce store, choosing the right plugin is paramount. The best WooCommerce affiliate retailer plugin that stands out […]
read moreSTREAMLINING PATIENT EXPERIENCE IN HEALTHCARE INDUSTRY
In our modern world, where we’ve grown accustomed to getting things instantly, the healthcare sector isn’t immune to the pressures of adapting and refining their processes. Just like any other service, healthcare centers are realizing the immense value of the patient’s journey — understanding that it directly affects their health results, trust in the system, […]
read more