From e16cf5584820c3957e941207568c886ce7eb84e0 Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Wed, 21 Apr 2021 20:26:23 -0400 Subject: [PATCH] Change CORS to allow all domains CORs access never was an issue with the client applications on devices, but is causing issues with testing the JS library. --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ;