Add CORS header to status.php so that we can migrate to a JS based check in the future
This commit is contained in:
parent
0a1d551090
commit
c9e2a2f56e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue