问题
I have 2 different url, the first one receive a form action from an html page with the data and make a post request to the second url. This receive the json and with express make a get request with this json.
How can I read a json that I receive from another url with post request made with axios?
Thanks
回答1:
Usually, Axios response returns an object containing data
;
const {data: json} = await axios.post(/*details*/);
console.log(json);
来源:https://stackoverflow.com/questions/57656728/node-receive-post-json-from-axios-post