Merge remote-tracking branch 'grocy/master'

This commit is contained in:
Zeb Fross 2020-04-01 19:42:22 -07:00
commit ad0abe6b59

View File

@ -262,8 +262,8 @@ $app->group('/api', function(RouteCollectorProxy $group)
$group->post('/uploadjson', '\Grocy\Controllers\StockApiController:UploadJson');
}
})->add(new CorsMiddleware([
'origin' => ["*"],
'methods' => ["GET", "POST"],
'origin' => ['*'],
'methods' => ['GET', 'POST', 'PUT', 'DELETE'],
'headers.allow' => [ $container->get('ApiKeyHeaderName') ],
'headers.expose' => [ ],
'credentials' => false,