Hello,
I recently changed my website to redirect to HTTPS. However, I installed freichat before making this change. Freichat is no longer loading for my site.
It looks like Freichat is not redirecting its make_url function to https. In my debug console in chrome, it is giving me the following error:
Mixed Content: The page at 'https://MY_URL.com/' was loaded over HTTPS, but requested an insecure script 'http://MY_URL.com/freichat/client/main.php?id=1&xhash=1fc434112254ac547c90dcda58cc3717'. This request has been blocked; the content must be served over HTTPS.
(index):70 Mixed Content: The page at 'https://MY_URL.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://MY_URL.com/freichat/client/jquery/freichat_themes/freichatcss.php'. This request has been blocked; the content must be served over HTTPS.
I have attempted to hardcode an https redirect in ./freichat/arg.php by modifying the following lines of code under public static function build_paths() to be https regardless of the original server redirect.
if (@$_SERVER["HTTPS"] == "on") {
$protocol = "https://";
} else {
$protocol = https://";
}
return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
However, this does not resolve the problem.
Does anyone know how to retroactively force Freichat to serve https?
Thank you
Hello,
I recently changed my website to redirect to HTTPS. However, I installed freichat before making this change. Freichat is no longer loading for my site.
It looks like Freichat is not redirecting its make_url function to https. In my debug console in chrome, it is giving me the following error:
````
Mixed Content: The page at 'https://MY_URL.com/' was loaded over HTTPS, but requested an insecure script 'http://MY_URL.com/freichat/client/main.php?id=1&xhash=1fc434112254ac547c90dcda58cc3717'. This request has been blocked; the content must be served over HTTPS.
(index):70 Mixed Content: The page at 'https://MY_URL.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://MY_URL.com/freichat/client/jquery/freichat_themes/freichatcss.php'. This request has been blocked; the content must be served over HTTPS.
````
I have attempted to hardcode an https redirect in ./freichat/arg.php by modifying the following lines of code under public static function build_paths() to be https regardless of the original server redirect.
````
if (@$_SERVER["HTTPS"] == "on") {
$protocol = "https://";
} else {
$protocol = https://";
}
return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
````
However, this does not resolve the problem.
Does anyone know how to retroactively force Freichat to serve https?
Thank you