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

25 lines
438 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
2021-04-27 17:29:47 +02:00
2019-01-15 14:17:15 +01:00
/**
* The trusted proxies for this application.
*
* @var array
*/
2021-06-30 11:11:05 +02:00
protected $proxies = ['*'];
2019-01-15 14:17:15 +01:00
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}