cors debug

This commit is contained in:
CHIEFSOFT\ameye
2023-06-19 07:54:37 -04:00
parent 592ae3b5aa
commit debc7d0721
+4 -1
View File
@@ -35,6 +35,7 @@ class Cors implements FilterInterface
$allowed_domains = array(
'http://localhost:9082/',
'https://users.wrenchboard.com/',
'https://dev-users.wrenchboard.com/',
'http://localhost:9083/',
'http://10.204.5.100:9082/',
'http://10.204.5.100:9083/',
@@ -45,6 +46,8 @@ class Cors implements FilterInterface
if (in_array($origin, $allowed_domains)) {
#header('Access-Control-Allow-Origin: ' . $origin);
}
/*
* Olu removed june 19th debugging
header("Access-Control-Allow-Headers: Origin, X-API-KEY, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Access-Control-Allow-Headers, Authorization, observe, enctype, Content-Length, X-Csrf-Token");
header("Access-Control-Allow-Methods: GET, PUT, POST, DELETE, PATCH, OPTIONS");
#header("Access-Control-Allow-Credentials: true");
@@ -55,7 +58,7 @@ class Cors implements FilterInterface
header("HTTP/1.1 200 OK CORS");
die();
}
*/
/*
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: X-API-KEY, Origin,X-Requested-With, Content-Type, Accept, Access-Control-Requested-Method, Authorization");