*/ protected $proxies; /** * The headers that should be used to detect proxies. * * @var int */ // protected $headers = Request::HEADER_X_FORWARDED_ALL; //07-03-2022 - fixes for symfony 5.2 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; /* * Instantiate trusted proxies middleware * * @param \Illuminate\Contracts\Config\Repository $config */ public function __construct(Repository $config) { // parent::__construct($config); if (config('ninja.trusted_proxies')) { $this->proxies = config('ninja.trusted_proxies'); } } }