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
@@ -14,6 +14,7 @@ if(isset($_GET['gameDataId'])){
$openGameDataStream = GameData::all();
}
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 $openGameDataStream->toJson(JSON_PRETTY_PRINT);