1 header("Access-Control-Allow-Origin: * "); 2 header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");