fix
This commit is contained in:
parent
7de97473ba
commit
8162c89051
|
@ -9,5 +9,8 @@ if(isset($_GET['gameJamId'])){
|
||||||
$dbValue = GameJam::all();
|
$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');
|
header('Content-Type: application/json;charset=UTF-8');
|
||||||
echo $dbValue->toJson(JSON_PRETTY_PRINT);
|
echo $dbValue->toJson(JSON_PRETTY_PRINT);
|
Loading…
Reference in New Issue