From 8162c89051931db1c4b74613b8fd52d4678fe244 Mon Sep 17 00:00:00 2001 From: RundelhausCode Date: Tue, 16 Mar 2021 12:25:22 +0100 Subject: [PATCH] fix --- Backend/Controllers/GameJam/GetGameJam.php | 3 +++ 1 file changed, 3 insertions(+) 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