From 2450d6a6e93fc65a8229e682c126b82d0e6cac81 Mon Sep 17 00:00:00 2001 From: Arasu Date: Tue, 18 Jul 2017 14:27:58 +0530 Subject: [PATCH] To avoid Blocked loading mixed active content while delviering on HTTPS --- public/constants.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/constants.php b/public/constants.php index f74be9f29..ec928d003 100644 --- a/public/constants.php +++ b/public/constants.php @@ -398,9 +398,8 @@ if(isset($_SERVER['HTTP_HOST'])) { - $domainurl = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http'; - - $domainurl .= '://'. $_SERVER['HTTP_HOST']; + #Auto Detect the Http vs Https and add to the URL + $domainurl = '//'. $_SERVER['HTTP_HOST']; $domain = $domainurl; $domainurl .= rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']),'/');