summaryrefslogtreecommitdiff
path: root/app/Http/Middleware/TrustProxies.php
diff options
context:
space:
mode:
authorhorus2026-03-27 18:22:00 +0100
committerhorus2026-03-27 18:22:00 +0100
commit51df8f1b6ae6d9848e125fad6970bf2a107fecd3 (patch)
tree029d9aab7fc790541a7fa7ce4f1bc5e287f550d4 /app/Http/Middleware/TrustProxies.php
parent54ef8f3b68efd19dfbbcc21f041105f90976085a (diff)
downloadcurious-51df8f1b6ae6d9848e125fad6970bf2a107fecd3.tar.gz
Update to Laravel 10
Diffstat (limited to 'app/Http/Middleware/TrustProxies.php')
-rw-r--r--app/Http/Middleware/TrustProxies.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php
index 3625f37..3e347db 100644
--- a/app/Http/Middleware/TrustProxies.php
+++ b/app/Http/Middleware/TrustProxies.php
@@ -2,7 +2,8 @@
namespace App\Http\Middleware;
-use Fideloper\Proxy\TrustProxies as Middleware;
+#use Fideloper\Proxy\TrustProxies as Middleware;
+use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
@@ -19,5 +20,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;
}