This commit is contained in:
Diego Najar 2021-10-16 15:55:33 +02:00
parent 594ba12ea3
commit ef8ac0ca5c

View file

@ -83,7 +83,7 @@ if (!defined('JSON_PRETTY_PRINT')) {
// Domain and protocol
define('DOMAIN', $_SERVER['HTTP_HOST']);
if ( !empty($_SERVER['HTTPS']) ||
if ((!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off')) ||
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ||
(!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && ($_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) ) {
define('PROTOCOL', 'https://');