diff --git a/routes.php b/routes.php index 8df89867..c5246360 100644 --- a/routes.php +++ b/routes.php @@ -250,8 +250,8 @@ $app->group('/api', function(RouteCollectorProxy $group) $group->get('/calendar/ical/sharing-link', '\Grocy\Controllers\CalendarApiController:IcalSharingLink'); } })->add(new CorsMiddleware([ - 'origin' => ["*"], - 'methods' => ["GET", "POST"], + 'origin' => ['*'], + 'methods' => ['GET', 'POST', 'PUT', 'DELETE'], 'headers.allow' => [ $container->get('ApiKeyHeaderName') ], 'headers.expose' => [ ], 'credentials' => false,