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

24 lines
441 B
PHP
Raw Permalink 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
{
/**
* 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.
*
2025-04-03 09:30:16 +02:00
* @var integer
2019-01-15 14:17:15 +01:00
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}