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

24 lines
440 B
PHP
Raw Permalink Normal View History

2020-04-09 13:05:23 +02:00
<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array|string
*/
protected $proxies;
/**
* The headers that should be used to detect proxies.
*
2022-09-21 11:17:58 +00:00
* @var integer
2020-04-09 13:05:23 +02:00
*/
2022-09-21 11:17:58 +00:00
protected $headers = Request::HEADER_X_FORWARDED_FOR;
2020-04-09 13:05:23 +02:00
}