[Vuejs]-"message": "Network Error", "name": "AxiosError",

0👍

I think this issue occurs because you are not sending a body with your POST request. Because of this the Content-Type is set to something else than application/json which the server only accepts so it throws back an error to you. I think sending an empty object in the body will fix it. You can also set the header in your request to contain Content-Type: application/json.
I think why it only happens on server and not on local is because your webserver is changing the request before sending it by appending Content-Type to it.

Leave a comment