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:48:28 +0200
commit6dffa0fc95385865efeea2fe24690f943f97edaa (patch)
tree634b8ee1c996258de97146ae96dd902fb2819724
parent21c9dd284b474693d35281316ec25bf1617d65c8 (diff)
downloadnextcloud-server-6dffa0fc95385865efeea2fe24690f943f97edaa.tar.gz
nextcloud-server-6dffa0fc95385865efeea2fe24690f943f97edaa.zip
[stable8.1] Add CORS header to status.php to allow client-based check in the future
-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);
}