I am making a $ .ajax call to an external server. This server returns a redirect, with the redirected page returning some json. This works fine on FF and Chrome, but Safari and Opera don't like it.
Here is my $ .ajax code:
$.ajax( { url:url, dataType:"json", success:function(data) { console.log("success"); }, complete:function() { console.log("complete"); } });
In firefox and chrome, this works correctly - for each of my ajax answers, success is called. However, in safari and opera, "success" is never called, only "complete." The network query console gives me the following information:
resolve.json GET 302 application/json 1817995.json GET (canceled) undefined
Where 1717995.json is a redirect sent with permission. json I am not sure why the request is canceled (as seen from the answer).
Can anyone help?
source share