Answer the question
In order to leave comments, you need to log in
What is the X-Redirect header responsible for?
A question. In Yii2, if $this->redirect() is called in a controller and the current request is an ajax request, is the X-Redirect header sent? But for some reason I can't read about this title anywhere on the Internet.
And at the same time, jquery.ajax() reloads the page if X-Redirect is sent, and if Location, then it makes an ajax request to the given URL. In short, what is the X-Redirect header responsible for? And why is there nowhere to read about it? And how to intercept it in jquey.ajax() so that it doesn't reload the page?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question