fixed config issue
This commit is contained in:
parent
1adae37e09
commit
748c9aa3cd
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware): void {
|
->withMiddleware(function (Middleware $middleware): void {
|
||||||
$proxies = config('app.trusted_proxies');
|
$proxies = env('TRUSTED_PROXIES', '127.0.0.1,::1');
|
||||||
$middleware->trustProxies(at: $proxies === '*' ? '*' : array_map('trim', explode(',', $proxies)));
|
$middleware->trustProxies(at: $proxies === '*' ? '*' : array_map('trim', explode(',', $proxies)));
|
||||||
$middleware->web(append: [
|
$middleware->web(append: [
|
||||||
\App\Http\Middleware\AddContentSecurityPolicy::class,
|
\App\Http\Middleware\AddContentSecurityPolicy::class,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue