Move new CORS library to global middleware, the only place it works

This commit is contained in:
Brady Wetherington 2022-02-22 19:07:23 -08:00
parent cd2c92fd6c
commit 294606fb0b

View file

@ -24,6 +24,7 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\SecurityHeaders::class, \App\Http\Middleware\SecurityHeaders::class,
\App\Http\Middleware\PreventBackHistory::class, \App\Http\Middleware\PreventBackHistory::class,
\Fruitcake\Cors\HandleCors::class,
]; ];
@ -44,7 +45,6 @@ class Kernel extends HttpKernel
], ],
'api' => [ 'api' => [
\Fruitcake\Cors\HandleCors::class,
'throttle:120,1', 'throttle:120,1',
'auth:api', 'auth:api',
], ],