This commit is contained in:
tokslaw7
2023-04-24 23:11:12 +00:00
parent 67608d6590
commit 7529f16f7d
2 changed files with 2 additions and 34 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Cors implements FilterInterface
header("Access-Control-Allow-Methods: GET, PUT, POST, DELETE, PATCH, OPTIONS");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Max-Age: 3600");
header('content-type: application/json; charset=utf-8');
#header('content-type: application/json; charset=utf-8');
$method = $_SERVER['REQUEST_METHOD'];
if ($method == "OPTIONS") {
header("HTTP/1.1 200 OK CORS");