Skip to content

A free open source IT asset/license management system

Move HandleCors middleware to be universal

Brady Wetherington64f83f9a5f45
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php
index 66abc7c20c..4ce8601a76 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,
+ \Barryvdh\Cors\HandleCors::class,
];
@@ -44,7 +45,6 @@ class Kernel extends HttpKernel
],
'api' => [
- \Barryvdh\Cors\HandleCors::class,
'throttle:120,1',
'auth:api',
],