tissue/app/Http/Middleware/TrustProxies.php

24 lines
436 B
PHP
Raw Normal View History

<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
2019-03-03 00:29:43 +09:00
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
protected $proxies = '**';
/**
2020-05-23 20:32:24 +09:00
* The headers that should be used to detect proxies.
*
2020-05-23 20:32:24 +09:00
* @var int
*/
2020-05-23 20:32:24 +09:00
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}