diff --git a/web/index.php b/web/index.php index bae7781..b1e9d74 100644 --- a/web/index.php +++ b/web/index.php @@ -60,7 +60,7 @@ $app->add(function (RequestInterface $request, $handler) use ($app) { $response = $handler->handle($request); return $response - ->withHeader('Access-Control-Allow-Origin', $app->getBasePath()) + ->withHeader('Access-Control-Allow-Origin', '*') ->withHeader('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, Accept, Origin, Authorization') ->withHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, PATCH, OPTIONS') ;