A free open source IT asset/license management system
Move new CORS library to global middleware, the only place it works
Brady Wetherington294606fb0bc5
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.phpindex 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',],