I hope you all are well!
I have a error in vue axios
Uncaught (in promise) Error: Request failed with status code 415
Here's my code
authService.Login(user)
.then(resp => {
if (resp.data.success) {
resolve(resp)
}
})
.catch(err => {
reject(err)
})
Login (data) {
return shaxios.post('api/Auth/Authorize', data)
}
You may send a JSON object to an API expecting a Form URL-encoded HTTP POST request.
Have you checked https://axios-http.com/docs/urlencoded ?