Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-08-22 15:44:02 +0300
committerLukas Reschke <lukas@owncloud.com>2015-08-22 15:44:02 +0300
commitc9e2a2f56e418610bede395465aa9282f5b04e97 (patch)
tree9be879451e7b49bbada541c695342c1f61a4374e /status.php
parent0a1d551090696b6423cf4fe0740468bff912a972 (diff)
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);
}