Ajax:预检的响应具有无效的HTTP状态代码404

我有服务,当我打电话给他
我收到错误,预检的响应有无效的HTTP状态代码404,如下图所示。 请在这里解决这个问题谢谢

在此处输入图像描述

这是ajax

$.ajax({ url:url, type: "Get", async: true, contentType: "application/text", dataType: "json", cache: false, crossDomain: true, success: function (data) { } } }); 

Web.config文件

                          

这对我有用:

 var settings = { "async": false, "url": url, "dataType": "json", } $.ajax(settings).done(function(response) { $.each(JSON.parse(response), function(index, item) { }) });