summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-22 14:48:28 +0200
committerLukas Reschke <lukas@owncloud.com>2015-08-22 14:50:51 +0200
commit602ec0efa148b422aa09116700e4d21ee6402e03 (patch)
tree640d54edc207e16d770d4f3305517632a4b7c391
parent17082469de954bb48ea8e4954c12164f9e88f0aa (diff)
downloadnextcloud-server-602ec0efa148b422aa09116700e4d21ee6402e03.tar.gz
nextcloud-server-602ec0efa148b422aa09116700e4d21ee6402e03.zip
[stable8] Add CORS header to status.php to allow client-based check in the future
-rw-r--r--status.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/status.php b/status.php
index f7bdfe1fd51..9d26772745e 100644
--- a/status.php
+++ b/status.php
@@ -38,6 +38,8 @@ try {
if (OC::$CLI) {
print_r($values);
} else {
+ header('Access-Control-Allow-Origin: *');
+ header('Content-Type: application/json');
echo json_encode($values);
}