Jquery访问Webservice Chrome浏览器报( XMLHttpRequest cannot load "XXX". No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "XXX" is therefore not allowed access. )异常解决方案,Webservice增加system.webserver配置节web.config 配置如下:<configuration><system.webServer><httpProtocol><customHeaders><add name="Access-Control-Allow-Origin" value="*" /><add name="Access-Control-Allow-Headers" value="Content-Type" /></customHeaders></httpProtocol></system.webServer></configuration>
Jquery访问Webservice Chrome异常
最新推荐文章于 2018-11-13 09:29:34 发布