1👍
I believe since you are posting formData, and axios presumes json, you might have to pass in a header telling the server it’s formdata you’re posting.
const headers = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
};
axios.post('/api/dashboard/addlist', formData, headers).then(response => {})
This might help.
Source:stackexchange.com