Why can’t you use res.redirect to jump after ajax request to node backend?

  node.js, question

Rt, the login function is to use ajax POST to the background. It is found that res.rediret cannot jump. There is a display status 302 on the route, but the page is still the current page. What is the reason for this

After the browser receives 302, it will trigger the webpage jump action. After ajax post, it receives 302 js, which needs to trigger the jump action in the callback function inside.
windows.location(redirectUrl);