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 2139da7 commit cff9144Copy full SHA for cff9144
jccp/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 Illuminate\Http\Request;
7
8
return Application::configure(basePath: dirname(__DIR__))
9
->withRouting(
@@ -11,7 +12,12 @@
11
12
health: '/up',
13
)
14
->withMiddleware(function (Middleware $middleware) {
- $middleware->trustProxies(at: '*');
15
+ $middleware->trustProxies(at: '*', headers:
16
+ Request::HEADER_X_FORWARDED_FOR |
17
+ Request::HEADER_X_FORWARDED_HOST |
18
+ Request::HEADER_X_FORWARDED_PORT |
19
+ Request::HEADER_X_FORWARDED_PROTO
20
+ );
21
})
22
->withExceptions(function (Exceptions $exceptions) {
23
//
0 commit comments