😍Header Create CRUD, get Data from Post man (ok)

header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: access");
header("Access-Control-Allow-Methods: POST");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");

Get data from POSTMAN

$data = json_decode(file_get_contents("php://input"),associative: true);

Last updated

Was this helpful?