mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
Merge remote-tracking branch 'grocy/master'
This commit is contained in:
commit
ad0abe6b59
|
|
@ -262,8 +262,8 @@ $app->group('/api', function(RouteCollectorProxy $group)
|
||||||
$group->post('/uploadjson', '\Grocy\Controllers\StockApiController:UploadJson');
|
$group->post('/uploadjson', '\Grocy\Controllers\StockApiController:UploadJson');
|
||||||
}
|
}
|
||||||
})->add(new CorsMiddleware([
|
})->add(new CorsMiddleware([
|
||||||
'origin' => ["*"],
|
'origin' => ['*'],
|
||||||
'methods' => ["GET", "POST"],
|
'methods' => ['GET', 'POST', 'PUT', 'DELETE'],
|
||||||
'headers.allow' => [ $container->get('ApiKeyHeaderName') ],
|
'headers.allow' => [ $container->get('ApiKeyHeaderName') ],
|
||||||
'headers.expose' => [ ],
|
'headers.expose' => [ ],
|
||||||
'credentials' => false,
|
'credentials' => false,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user