add CORS headers
continuous-integration/drone/push Build is passing Details

pull/3/head
remrem 1 year ago
parent 10018d4de8
commit a77244797a

@ -5,6 +5,8 @@ require_once "gateway/file_gateway.php";
require_once "database_con.php";
require_once "token.php";
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Authorization, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Allow-Origin");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
use Psr\Http\Message\ResponseInterface as Response;
@ -224,4 +226,4 @@ return function (App $app) {
if($code === -1) return $res->withStatus(500);
return $res->withStatus(200);
});
};
};

Loading…
Cancel
Save