diff --git a/app/routes.php b/app/routes.php index 9e8593f..1329cdc 100644 --- a/app/routes.php +++ b/app/routes.php @@ -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); }); -}; \ No newline at end of file +};