From 294606fb0bc5acf73922643f2e636a72aa682ec0 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 22 Feb 2022 19:07:23 -0800 Subject: [PATCH] Move new CORS library to global middleware, the only place it works --- app/Http/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index acd42e5576..9ea24c11e5 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -24,6 +24,7 @@ class Kernel extends HttpKernel \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, \App\Http\Middleware\SecurityHeaders::class, \App\Http\Middleware\PreventBackHistory::class, + \Fruitcake\Cors\HandleCors::class, ]; @@ -44,7 +45,6 @@ class Kernel extends HttpKernel ], 'api' => [ - \Fruitcake\Cors\HandleCors::class, 'throttle:120,1', 'auth:api', ],