remove header

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-18 16:37:13 -04:00
parent 662079cedf
commit 24aa32dedf
+2 -2
View File
@@ -253,7 +253,7 @@ class WrenchApi extends BaseController
return $in;
}
public function apigate(){
/*
//$request = service('request');
header('Access-Control-Allow-Origin: *');
//header("Access-Control-Allow-Origin: http://localhost:9057 ");
@@ -262,7 +262,7 @@ class WrenchApi extends BaseController
//header("Access-Control-Allow-Headers: Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
header('Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS');
header('Content-type: application/json');
*/
// what is the endpoint
$uri = urldecode(current_url(true));
$findme = '?';