We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cff6a2 commit a0df479Copy full SHA for a0df479
bootstrap/app.php
@@ -3,6 +3,7 @@
3
use Illuminate\Foundation\Application;
4
use Illuminate\Foundation\Configuration\Exceptions;
5
use Illuminate\Foundation\Configuration\Middleware;
6
+use Symfony\Component\HttpFoundation\Request;
7
8
return Application::configure(basePath: dirname(__DIR__))
9
->withRouting(
@@ -11,7 +12,11 @@
11
12
health: '/up',
13
)
14
->withMiddleware(function (Middleware $middleware) {
- //
15
+ $middleware->trustProxies(at: '*', headers: Request::HEADER_X_FORWARDED_FOR |
16
+ Request::HEADER_X_FORWARDED_HOST |
17
+ Request::HEADER_X_FORWARDED_PORT |
18
+ Request::HEADER_X_FORWARDED_PROTO |
19
+ Request::HEADER_X_FORWARDED_AWS_ELB);
20
})
21
->withExceptions(function (Exceptions $exceptions) {
22
//
0 commit comments