AJAX远程访问局域网内webservice

AJAX远程访问局域网内webservice - Web 开发 / Ajaxwebservice 部署在aa.net下其他有个方法GetLastTpositi

AJAX远程访问局域网内webservice - Web 开发 / Ajax
webservice 部署在aa.net下
其他有个方法GetLastTposition
在浏览器上直接写URL访问时地址http://aa.net/WebService/Getinfo.asmx/GetLastTposition
可以成功

但是在JS下用AJAX访问时 
  $.ajax({
  type: "post",
  async: false,
  contentType: "application/json",
  url: "http://aa.net/WebService/Getinfo.asmx/GetLastTposition",
  ………………
提示被拒绝 
匿名访问已开 权限everyone 
请问这是什么原因


[解决办法]
不允许跨域访问,可以写一个本地的aciton,再通过action访问
[解决办法]
很明显跨域了 。
[解决办法]
web service和你的页面不在一台服务器上的话就跨域了。

可以考虑用jquery + jsonp + wcf 4.0 支持跨域。