updated to handle proxies correctly
This commit is contained in:
parent
4c99626acc
commit
1adae37e09
3 changed files with 19 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
$proxies = config('app.trusted_proxies');
|
||||
$middleware->trustProxies(at: $proxies === '*' ? '*' : array_map('trim', explode(',', $proxies)));
|
||||
$middleware->web(append: [
|
||||
\App\Http\Middleware\AddContentSecurityPolicy::class,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue