Skip to content

Commit e71f50f

Browse files
garygreentaylorotwell
authored andcommitted
Move TrustProxies to highest priority - fixes maintenance mode ip whitelist if behind proxy e.g. Cloudflare (laravel#5055)
1 parent ebc6f6e commit e71f50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ class Kernel extends HttpKernel
1414
* @var array
1515
*/
1616
protected $middleware = [
17+
\App\Http\Middleware\TrustProxies::class,
1718
\App\Http\Middleware\CheckForMaintenanceMode::class,
1819
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
1920
\App\Http\Middleware\TrimStrings::class,
2021
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21-
\App\Http\Middleware\TrustProxies::class,
2222
];
2323

2424
/**

0 commit comments

Comments
 (0)