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
+4 -3
View File
@@ -9,8 +9,9 @@ if(isset($_GET['gameJamId'])){
$dbValue = GameJam::all();
}
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept");
header('Content-Type: application/json;charset=UTF-8');
echo $dbValue->toJson(JSON_PRETTY_PRINT);
echo $dbValue->toJson(JSON_PRETTY_PRINT);
//var_dump(headers_list());