Console shows 200 Image I cant seem to understand why this Ajax query is failing, opening the console and viewing network I see that there is a response of 200 and the preview tab on my browser shows the data I expect, but in the complete callback I get the xhr object with and the response statusText shows "error"... Can anyone give me some insight and educate me?
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script>
jQuery.ajax({
url:"https://www.fdic.gov/bank/individual/failed/banklist.csv",
cache:false,
crossDomain:true,
xhr:function(){
var xhr = new XMLHttpRequest();
xhr.responseType= 'blob';
xhr.withCredentials = true;
return xhr;
},
success: function(data){
console.log("success",data)
$("body").append("success " + data);
},
complete:function(data){
console.log("complete",data);
$("body").append("complete " + data.statusText);
}
});
</script>