jQuery AJAX GET/POST request returns 404 in error handler, but valid response is sent from server
The Problem: I send GET or POST request with jQuery.ajax and get an error handler triggered with 404. The thing is, I have used a sniffer to check an answer from server and it is a valid 200 response with a correct JSON (returned by Python json.dumps). And something weird: after this call ends up with 404 a browser reloads the page. Everything lives in the same domain (and subdomain too). jQuery call: $.ajax({type: "POST", url: "/m/auth/login", data: {x: "y"}, success: function(result) {}, error: function(xhr) {}, dataType: "json"}); Response as seen by sniffer with payload decompressed: HTTP