Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:9001/api/size/get. (Reason: CORS header 'Access-Control-Allow-Origin' missing). 打开API项目录,命名用NuGet安装Microsoft.AspNet.WebApi.Cors: 在WebApiCon…
Received an invalid response. Origin 'null' is therefore not allowed access. 今天在做二级联动,使用ajax请求xml数据,在用ie8与chrome做测试时就出现了这句话,看到网上也有说跨域等其他,更改浏览器等...... 我的解决方法:我把它放在iis服务器进行测试,请求数据就正常了!…