mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
CORS settings in webui (#11912)
* Change CORS implementation allows for upstream integration of Laravel 7 * migrate config * skip implementing patterns for now * Expose settings to the webui * Make db settings apply
This commit is contained in:
@@ -16,6 +16,7 @@ class Kernel extends HttpKernel
|
||||
*/
|
||||
protected $middleware = [
|
||||
\App\Http\Middleware\TrustProxies::class,
|
||||
\App\Http\Middleware\HandleCors::class,
|
||||
\App\Http\Middleware\CheckForMaintenanceMode::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||
\App\Http\Middleware\TrimStrings::class,
|
||||
@@ -54,7 +55,6 @@ class Kernel extends HttpKernel
|
||||
'api' => [
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
'authenticate:token',
|
||||
\Spatie\Cors\Cors::class,
|
||||
],
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user