bookinventory/app/Http/Middleware/TrustProxies.php

23 lines
440 B
PHP
Raw Normal View History

2020-12-21 07:09:34 +00:00
<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
2020-12-21 08:43:16 +00:00
class TrustProxies extends Middleware
{
2020-12-21 07:09:34 +00:00
/**
* The trusted proxies for this application.
*
2020-12-21 08:43:16 +00:00
* @var array|string|null
2020-12-21 07:09:34 +00:00
*/
protected $proxies;
/**
2020-12-21 08:43:16 +00:00
* The headers that should be used to detect proxies.
2020-12-21 07:09:34 +00:00
*
2020-12-21 08:43:16 +00:00
* @var int
2020-12-21 07:09:34 +00:00
*/
2020-12-21 08:43:16 +00:00
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}