Skip to content

Commit b1b3928

Browse files
committed
Support of error pages behind a load balancer that serves HTTPS but accesses the webserver on HTTP. Without this css is loaded on HTTP from a document loaded over HTTPS
1 parent e120448 commit b1b3928

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pub/errors/processor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ public function getHostUrl()
265265
$host = 'localhost';
266266
}
267267

268-
// HTTP_X_FORWARDED_PROTO to check whether a webserver using HTTP is behind a load balancer serving HTTPS
269268
$isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off') || $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https';
270269
$url = ($isSecure ? 'https://' : 'http://') . $host;
271270

0 commit comments

Comments
 (0)