Added some headers

This commit is contained in:
neerholt
2021-03-19 09:18:19 +01:00
parent 815ec2d499
commit c1484e4710
7 changed files with 38 additions and 10 deletions
+3
View File
@@ -21,6 +21,9 @@ if(isAdmin() && isset($_GET['gameJamId'])){
$winningGroups->push($group);
}
}
header("Access-Control-Allow-Methods: GET");
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept");
header('Content-Type: application/json;charset=UTF-8');
echo $winningGroups->toJson(JSON_PRETTY_PRINT);