J
J
jazzus2019-01-06 19:23:43
Vue.js
jazzus, 2019-01-06 19:23:43

Why am I getting GET on axios.post?

I do

axios.post(`/user/store`, this.user)
                .then((response) => {
                    console.log(response.data.data)
                })

I receive in the console
GET http://test.ru/404 (Not Found)
First why Get?
Second, why 404? I see the link in Chrome Networks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jazzus, 2019-01-06
@jazzus

The error was in the controller on the back (redirect when checking a variable).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question