JQuery CORS and Redirects
问题 Using JQuery 1.8.2 I'm making a CORS request to an app from one AppServer ( Front ) to another AppServer ( Back ) server. When i make the following Ajax calls from Front , the 302 response (security check) from Back is honored, but my JSESSIONID cookie is not stored: $.ajax({ url : url, dataType : 'html', success : function(data, status, xhr) { $(dataContainer).append(data); }, complete: function(xhr, status, error) { if (xhr.status != 200) { $.logger(xhr.getResponseHeader('Location')); } } }