feat: configure middleware to trust all proxies in application bootstrap

This commit is contained in:
IlhamIslamy 2026-05-29 16:39:31 +07:00
parent 5a7e027ad4
commit c9eacaee46
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@
health: '/up', health: '/up',
) )
->withMiddleware(function (Middleware $middleware): void { ->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
$middleware->encryptCookies(except: ['appearance', 'sidebar_state']); $middleware->encryptCookies(except: ['appearance', 'sidebar_state']);
$middleware->web(append: [ $middleware->web(append: [