私はWebサービスを持っていて、jQueryから呼び出しています。同じサーバーに留まるまではすべて正常に動作しますが、他のドメインからそのサービスを呼び出そうとしても何も得られません誰か助けてください。以下は私のコードです:
$.ajax({
type: 'POST',
url: 'http://-----------/Service.asmx/BulkUpdate',
data:"{'CaseID': '"+CaseID+"'}",
contentType : "application/json; charset=utf-8;",
"dataType" : "json",
success: function(xData, status)
{
alert(xData.d);
}
,error : function(xhr)
{
alert(xhr.responseText);
}
});