[Pkg-owncloud-commits] [owncloud] 17/24: [stable8] Add CORS header to status.php to allow client-based check in the future

David Prévot taffit at moszumanska.debian.org
Wed Sep 2 13:30:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.7RC1
in repository owncloud.

commit 602ec0efa148b422aa09116700e4d21ee6402e03
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Sat Aug 22 14:48:28 2015 +0200

    [stable8] Add CORS header to status.php to allow client-based check in the future
---
 status.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/status.php b/status.php
index f7bdfe1..9d26772 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);
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list