mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Move new CORS library to global middleware, the only place it works
This commit is contained in:
parent
cd2c92fd6c
commit
294606fb0b
|
@ -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',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue