summaryrefslogtreecommitdiffstats
path: root/status.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-22 14:44:02 +0200
committerLukas Reschke <lukas@owncloud.com>2015-08-22 14:44:02 +0200
commitc9e2a2f56e418610bede395465aa9282f5b04e97 (patch)
tree9be879451e7b49bbada541c695342c1f61a4374e /status.php
parent0a1d551090696b6423cf4fe0740468bff912a972 (diff)
downloadnextcloud-server-c9e2a2f56e418610bede395465aa9282f5b04e97.tar.gz
nextcloud-server-c9e2a2f56e418610bede395465aa9282f5b04e97.zip
Add CORS header to status.php so that we can migrate to a JS based check in the future
Diffstat (limited to 'status.php')
-rw-r--r--status.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/status.php b/status.php
index 6e7bcea5266..90250ff2615 100644
--- a/status.php
+++ b/status.php
@@ -41,6 +41,7 @@ try {
if (OC::$CLI) {
print_r($values);
} else {
+ header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
echo json_encode($values);
}