mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for trusted proxies
This commit is contained in:
parent
3737a552f9
commit
d8d8914b5a
@ -29,7 +29,15 @@ class TrustProxies extends Middleware
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
||||
// 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user