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

pull/3/head
remrem 1 year ago
parent 1f31ec3620
commit 59fb7d7e6b

@ -6,7 +6,7 @@ require_once "database_con.php";
require_once "token.php"; require_once "token.php";
header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *"); header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept, Origin, Authorization");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE"); header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
header("Access-Control-Allow-Credentials: true"); header("Access-Control-Allow-Credentials: true");

Loading…
Cancel
Save