Answer the question
In order to leave comments, you need to log in
How to send json via axios?
Hello! Faced the following problem:
I'm trying to send json via axios to my backend:
axios .post(this.url, data, {
headers: {
'Content-Type': 'application/json',
Accept: 'application/json'
}
})
.then(response => (
this.resCalc = response
))
.catch(function (error) {
console.log(error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question