3 namespace App\Http\Middleware;
5 use Illuminate\Http\Middleware\TrustProxies as Middleware;
6 use Illuminate\Http\Request;
8 class TrustProxies extends Middleware
11 * The trusted proxies for this application.
13 * @var array<int, string>|string|null
18 * The headers that should be used to detect proxies.
23 Request::HEADER_X_FORWARDED_FOR |
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;