jonnybarnes.uk/app/Http/Middleware/TrustProxies.php

24 lines
435 B
PHP
Raw Normal View History

<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
2019-10-19 15:34:49 +01:00
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
2019-10-19 15:34:49 +01:00
* @var array|string
*/
protected $proxies;
/**
2018-02-15 12:26:59 +00:00
* The header that should be used to detect proxies.
*
2019-10-19 15:34:49 +01:00
* @var int
*/
2018-02-15 12:26:59 +00:00
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}