Skip to content
Permalink
Browse files

Move TrustProxies to highest priority - fixes maintenance mode ip whi…

…telist if behind proxy e.g. Cloudflare (#5055)
  • Loading branch information...
garygreen authored and taylorotwell committed Jul 10, 2019
1 parent ebc6f6e commit e71f50f664b5b6a6ffbeffac668717bb40c36d93
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/Http/Kernel.php
@@ -14,11 +14,11 @@ class Kernel extends HttpKernel
* @var array
*/
protected $middleware = [
\App\Http\Middleware\TrustProxies::class,
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
];
/**

0 comments on commit e71f50f

Please sign in to comment.
You can’t perform that action at this time.