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

David Prévot taffit at moszumanska.debian.org
Tue Sep 1 20:55:39 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

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

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

diff --git a/status.php b/status.php
index 6e7bcea..90250ff 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);
 	}

-- 
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