[Vuejs]-Vue app axios post data to express backend receiving undefined

0👍

Try this in main.js:

expressApp.use(bodyParser.json());

Also, instead of using url-encoding in axios.js, use json. Set your header to this instead:

'content-type': 'application/json',

Leave a comment