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 1875c8c + 01e5df9 commit 52b7d5eCopy full SHA for 52b7d5e
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
$port = explode(':', $host);
0 commit comments