Explorar o código

Update TrustProxies middleware

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
97f3bc571e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      app/Http/Middleware/TrustProxies.php

+ 5 - 1
app/Http/Middleware/TrustProxies.php

@@ -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;
 }