ldc-dam/app/Http/Middleware/TrustProxies.php

24 lines
435 B
PHP
Raw Normal View History

2019-05-09 15:00:05 +02:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
2019-07-22 14:54:42 +02:00
protected $proxies = '*';
2019-05-09 15:00:05 +02:00
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}