2020-12-21 07:09:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
|
|
|
|
use Fideloper\Proxy\TrustProxies as Middleware;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
2020-12-21 08:43:16 +00:00
|
|
|
class TrustProxies extends Middleware
|
|
|
|
{
|
2020-12-21 07:09:34 +00:00
|
|
|
/**
|
|
|
|
* The trusted proxies for this application.
|
|
|
|
*
|
2020-12-21 08:43:16 +00:00
|
|
|
* @var array|string|null
|
2020-12-21 07:09:34 +00:00
|
|
|
*/
|
|
|
|
protected $proxies;
|
|
|
|
|
|
|
|
/**
|
2020-12-21 08:43:16 +00:00
|
|
|
* The headers that should be used to detect proxies.
|
2020-12-21 07:09:34 +00:00
|
|
|
*
|
2020-12-21 08:43:16 +00:00
|
|
|
* @var int
|
2020-12-21 07:09:34 +00:00
|
|
|
*/
|
2020-12-21 08:43:16 +00:00
|
|
|
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
|
|
|
}
|