Skip to content

Commit e2534c8

Browse files
committed
fix: remove TrustProxies by default
1 parent 7b4de7a commit e2534c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
],
3131
);
3232
// TrustProxies middleware for Traefik handling assets over https
33-
$middleware->trustProxies(
33+
/* $middleware->trustProxies(
3434
at: '*',
3535
headers: Request::HEADER_X_FORWARDED_FOR
3636
| Request::HEADER_X_FORWARDED_HOST
3737
| Request::HEADER_X_FORWARDED_PORT
3838
| Request::HEADER_X_FORWARDED_PROTO
39-
);
39+
); */
4040
})
4141
->withExceptions(function (Exceptions $exceptions) {
4242
$exceptions->respond(function (Response $response, Throwable $exception, Request $request) {

0 commit comments

Comments
 (0)