Contacts headrer

This commit is contained in:
dev-chiefworks
2023-01-14 08:41:51 -05:00
parent 7e23bf74b0
commit 39dac88a7c
2 changed files with 17 additions and 6 deletions
+8
View File
@@ -35,6 +35,14 @@ class Myfit extends BaseController
);
$something = $this->request->getVar('name');
*/
header("Access-Control-Allow-Origin: * ");
//header("Access-Control-Allow-Origin: http://localhost:9057 ");
header("Access-Control-Expose-Headers: Access-Control-Allow-Origin");
header("Access-Control-Allow-Credentials: true ");
//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');
$raw_json = file_get_contents("php://input");
$raw_array = json_decode($raw_json, true);
$something = $raw_array["name"];