L
L
Larisa .•º2019-10-04 22:18:39
Vue.js
Larisa .•º, 2019-10-04 22:18:39

Is it possible to make a redirect from the api backend?

There is an api if the client (vue) makes a request to the back-api, and it has a redirect
to some source (HttpResponseRedirect(redirect_to=' https ://google.com ')). can this be done somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Iontzev, 2019-10-05
@iontzev

You read the response headers, if the code is 300, then a redirect and you need to do something. Redirect with js, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question