Added some headers
This commit is contained in:
@@ -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());
|
||||
Reference in New Issue
Block a user