diff --git a/workflow/engine/src/ProcessMaker/Core/System.php b/workflow/engine/src/ProcessMaker/Core/System.php index 16b21bc78..d846a9cc5 100644 --- a/workflow/engine/src/ProcessMaker/Core/System.php +++ b/workflow/engine/src/ProcessMaker/Core/System.php @@ -1534,7 +1534,8 @@ class System */ public static function getServerProtocol() { - return G::is_https() ? "https://" : "http://"; + $envProtocol = defined("REQUEST_SCHEME") && REQUEST_SCHEME === "https"; + return G::is_https() || $envProtocol ? "https://" : "http://"; } /**