Update TrustProxies middleware

This commit is contained in:
Daniel Supernault 2022-06-09 02:28:59 -06:00
parent 7c8f76438b
commit 97f3bc571e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -19,5 +19,9 @@ class TrustProxies extends Middleware
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
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;
}