vmailadmin/app/Http/Middleware/TrustProxies.php

29 lines
602 B
PHP
Raw Normal View History

2020-05-23 15:20:01 +02:00
<?php
namespace App\Http\Middleware;
2024-03-28 21:09:45 +01:00
use Illuminate\Http\Middleware\TrustProxies as Middleware;
2020-05-23 15:20:01 +02:00
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array|string
*/
protected $proxies = '*';
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
2024-03-28 21:09:45 +01:00
protected $headers =
Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO |
Request::HEADER_X_FORWARDED_AWS_ELB;
2020-05-23 15:20:01 +02:00
}