Skip to content
Snippets Groups Projects
Commit c9e2a2f5 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add CORS header to status.php so that we can migrate to a JS based check in the future

parent 0a1d5510
Branches
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ try { ...@@ -41,6 +41,7 @@ try {
if (OC::$CLI) { if (OC::$CLI) {
print_r($values); print_r($values);
} else { } else {
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json'); header('Content-Type: application/json');
echo json_encode($values); echo json_encode($values);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment