Move HandleCors middleware to be universal

This commit is contained in:
Brady Wetherington 2022-02-22 17:43:40 -08:00
parent dc2b58f865
commit 64f83f9a5f

View file

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