mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Allow any used HTTP request method for CORS (references #681)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user