summaryrefslogtreecommitdiff
path: root/src/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.php')
-rw-r--r--src/App.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/App.php b/src/App.php
index b270b02..107113a 100644
--- a/src/App.php
+++ b/src/App.php
@@ -106,6 +106,7 @@ class App
}
$response->headers->set('Content-Type', 'application/json');
+ $response->headers->set('Access-Control-Allow-Origin', implode(',', $config['api']['cors']['origins']));
$response->setContent(json_encode($content));
$response->send();
}