summaryrefslogtreecommitdiff
path: root/app/Http/Middleware
diff options
context:
space:
mode:
authorhorus2022-11-17 18:51:54 +0100
committerhorus2022-11-17 18:51:54 +0100
commitf2e76ff110f531703f2c4f400e1fa285ee05ad94 (patch)
tree40dcdd85bf3b798b4841b4c05f29b85cdde662fc /app/Http/Middleware
parente730f497203423c4b9443cd8dbb06eec6274d75a (diff)
downloadsenpai-f2e76ff110f531703f2c4f400e1fa285ee05ad94.tar.gz
Fix for 9.x upgrade + better handling of Anistats rate limiting
Diffstat (limited to 'app/Http/Middleware')
-rw-r--r--app/Http/Middleware/TrustProxies.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php
index 3625f37..f8baead 100644
--- a/app/Http/Middleware/TrustProxies.php
+++ b/app/Http/Middleware/TrustProxies.php
@@ -19,5 +19,10 @@ 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;
}