We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de50d12 + 320c0aa commit 01e5df9Copy full SHA for 01e5df9
pub/errors/processor.php
@@ -265,7 +265,8 @@ public function getHostUrl()
265
$host = 'localhost';
266
}
267
268
- $isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off');
+ $isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off')
269
+ || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
270
$url = ($isSecure ? 'https://' : 'http://') . $host;
271
272
if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 443])
0 commit comments