[Vuejs]-How to catch a redirection RedirectResponse from Vuejs and redirect

0👍

When you’re doing XHR request and your server sends Redirect response, then it redirects this XHR request, not the browser itself.

You should either respond with some JSON that contains redirect URL that could be used in your client to redirect browser to (not recommended), or don’t send XHR request at all, and just send client’s browser on URL that will be redirected later.

Leave a comment