[英]Web Service works in IE7 but not Firefox
I have a .Net web service that I call from javascript using: 我有一个.Net Web服务,可以使用以下方法从javascript调用:
$.ajax({ type: "POST", url: "http://myServerIP/Myervice.asmx/MyMethod",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "jsonp",
success: function(msg) { alert('sucess ' + msg); },
error: function(XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest); alert(textStatus); alert(errorThrown); }
});
I get a success message in IE7 and in Firefox I don't get any decent errors back just 'error' and 'undefined' 我在IE7和Firefox中收到成功消息,但没有收到任何体面的错误,只是“错误”和“未定义”
I suspect this is due to the fact that I'm on an Intranet here and IE7 is taking my credentials and passing them to IIS on 'myServer' on my behalf while other browsers cannot. 我怀疑这是由于我在这里位于Intranet上,而IE7却将我的凭据作为我的凭据传递给了“ myServer”上的IIS,而其他浏览器则无法。
Is this the case? 是这样吗
How do I go about fixing this problem? 我该如何解决这个问题?
Thanks in advance 提前致谢
Davy 戴维
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.