Skip to content

Commit

Permalink
Change CORS to allow all domains
Browse files Browse the repository at this point in the history
CORs access never was an issue with the client applications on devices, but is causing issues with testing the JS library.
  • Loading branch information
dragonmantank authored Apr 22, 2021
1 parent d62ae64 commit e16cf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
;
Expand Down

0 comments on commit e16cf55

Please sign in to comment.