diff --git a/Backend/Controllers/GameJam/GetGameJam.php b/Backend/Controllers/GameJam/GetGameJam.php index 12d62c6..0473884 100644 --- a/Backend/Controllers/GameJam/GetGameJam.php +++ b/Backend/Controllers/GameJam/GetGameJam.php @@ -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); \ No newline at end of file