Skip to content

Commit fd2d5c5

Browse files
committed
trust all private IP addresses
1 parent f038c5f commit fd2d5c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bootstrap/app.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
->withMiddleware(function (Middleware $middleware) {
2020
$middleware
2121
->throttleApi(redis: true)
22-
->trustProxies(at: ['*'])
22+
->trustProxies(at: [
23+
'127.0.0.1',
24+
'10.0.0.0/8',
25+
'172.16.0.0/12',
26+
'192.168.0.0/16',
27+
])
2328
->api(prepend: [
2429
JsonResponse::class,
2530
]);

0 commit comments

Comments
 (0)