. */ declare(strict_types=1); namespace FireflyIII\Http\Middleware; use Illuminate\Http\Middleware\TrustProxies as Middleware; use Symfony\Component\HttpFoundation\Request; /** * Class TrustProxies * */ class TrustProxies extends Middleware { // After... protected $headers = Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_AWS_ELB; /** * TrustProxies constructor. */ public function __construct() { $this->proxies = (string)config('firefly.trusted_proxies'); } }