jquery ajax error {“readyState”:0,“responseText”:“”,“status”:0,“statusText”:“error”}

后端 未结 4 641
逝去的感伤
逝去的感伤 2020-12-17 15:07

I am trying to do an ajax request

$.ajax({
  type: \"post\",
  url: \"download.php\",
  error: function(data, status, err){
           alert(JSON.stringify(d         


        
4条回答
  •  一生所求
    2020-12-17 15:59

    I was getting the same error:

    "readyState: 0"
    "responseText: undefined"
    "status: 0"
    "text status: error"
    "error: "
    

    In my case, one Firefox Browser works perfectly and another Firefox Browser with the same version was giving me this error without even making the ajax call.

    The solution was to disable an Adblocker Add-On in my browser.

提交回复
热议问题