The official documentation of jQuery ( async ajax section ) says that:
Cross-domain requests and dataType: \"jsonp\" requests do not support synchronou
Use beforeSend instead of xhrField.
beforeSend
xhrField
$.ajax({ type : "GET", async: false, dataType : "text", url : link, beforeSend: function(xhr) { xhr.withCredentials = true; }, success: function(response){ console.log("success "); }, error: function(error){ console.error(error); } });