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.
- [Vuejs]-How to show data from component in slot?
- [Vuejs]-How to handle transitions and animations in Gridsome
Source:stackexchange.com