When I use jQuery ajax call (post or get) and I get a redirect (302), it seems that Jquery is automatically redirecting. In other words, it does not cause completion or successful callbacks until a redirect is complete. In addition, relaying is not taken into account in the cookie settings from the original response. In other words, the cookie set from the initial answer is filled with a lot of things, but when the redirect occurs, the cookie is not present. Therefore, I have 2 questions.
1) Is jQuery an ajax call to automatically follow call forwarding? Is there a way to do this not after the redirect?
and
2) When it redirects, are the cookies that should be set from the original response? Or should they always be empty?
source share