The AJAX request never has the opportunity to NOT follow the redirect (i.e., it must follow the redirect). More information can be found in this answer https://stackoverflow.com/a/2573589/965648
More Related Contents:
- Cannot properly set the Accept HTTP header with jQuery
- Retrieving HTTP status code from loaded iframe with Javascript
- What HTTP status codes count as success in jQuery.ajax?
- Jquery Ajax Posting JSON to webservice
- How can I use JQuery to post JSON data?
- How can I convince IE to simply display application/json rather than offer to download it?
- jQuery Call to WebService returns “No Transport” error
- Send JSON data via POST (ajax) and receive json response from Controller (MVC)
- Queue ajax requests using jQuery.queue()
- How do I catch an Ajax query post error?
- Detecting no results on jQuery UI autocomplete
- Fade in each element – one after another
- jQuery validator and a custom rule that uses AJAX
- jQuery CORS Content-type OPTIONS
- How to send request parameter array to servlet using jQuery $.ajax?
- How to set encoding in .getJSON jQuery
- replace div content using ajax and jquery
- Pass Blob through ajax to generate a file
- Getting 400 bad request error in Jquery Ajax POST
- jQuery: Check if image exists
- jQuery.ajax fails when url is from different server
- When using Ajax with jQuery DataTables, how do I determine what to do with the data returned?
- “How” to save an entire collection in Backbone.js – Backbone.sync or jQuery.ajax?
- What is the difference between async:false and async:true in jquery ajax?
- GUI-based or Web-based JSON editor that works like property explorer [closed]
- jQuery: Making simultaneous ajax requests, is it possible?
- jquery nested ajax calls formatting
- jQuery send HTML data through POST
- My Own Like Button: Django + Ajax — How?
- jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]