We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804a32d commit 112708eCopy full SHA for 112708e
app/Http/Middleware/TrustProxies.php
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
12
*
13
* @var array<int, string>|string|null
14
*/
15
- protected $proxies;
+ protected $proxies = env('TRUSTED_PROXIES', '*');
16
17
/**
18
* The headers that should be used to detect proxies.
@@ -24,5 +24,6 @@ class TrustProxies extends Middleware
24
Request::HEADER_X_FORWARDED_HOST |
25
Request::HEADER_X_FORWARDED_PORT |
26
Request::HEADER_X_FORWARDED_PROTO |
27
- Request::HEADER_X_FORWARDED_AWS_ELB;
+ Request::HEADER_X_FORWARDED_PREFIX |
28
+ Request::HEADER_X_FORWARDED_TRAEFIK;
29
}
0 commit comments