Files
spa-api/app/Http/Middleware/TrustProxies.php

24 lines
433 B
PHP
Raw Normal View History

2017-03-29 10:05:16 -05:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
2017-03-29 10:06:39 -05:00
* The trusted proxies for this application.
2017-03-29 10:05:16 -05:00
*
* @var array
*/
protected $proxies;
/**
2017-12-19 08:21:38 -06:00
* The headers that should be used to detect proxies.
2017-03-29 10:05:16 -05:00
*
* @var integer
2017-03-29 10:05:16 -05:00
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
2017-03-29 10:05:16 -05:00
}