diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-08-22 14:48:28 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-22 14:50:51 +0200 |
commit | 602ec0efa148b422aa09116700e4d21ee6402e03 (patch) | |
tree | 640d54edc207e16d770d4f3305517632a4b7c391 | |
parent | 17082469de954bb48ea8e4954c12164f9e88f0aa (diff) | |
download | nextcloud-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.php | 2 |
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); } |