diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 09:30:19 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-24 09:30:19 +0200 |
commit | 12d70eb959cff7f5948a5a6c0ccd25ebd99ef125 (patch) | |
tree | 640d54edc207e16d770d4f3305517632a4b7c391 | |
parent | 17082469de954bb48ea8e4954c12164f9e88f0aa (diff) | |
parent | 602ec0efa148b422aa09116700e4d21ee6402e03 (diff) | |
download | nextcloud-server-12d70eb959cff7f5948a5a6c0ccd25ebd99ef125.tar.gz nextcloud-server-12d70eb959cff7f5948a5a6c0ccd25ebd99ef125.zip |
Merge pull request #18488 from owncloud/stable8-add-cors-header
[stable8] Add CORS header to status.php to allow client-based check i…
-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); } |