This commit is contained in:
RundelhausCode 2021-03-16 12:25:22 +01:00
parent 7de97473ba
commit 8162c89051
1 changed files with 3 additions and 0 deletions

View File

@ -9,5 +9,8 @@ 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('Content-Type: application/json;charset=UTF-8');
echo $dbValue->toJson(JSON_PRETTY_PRINT);