2018-10-15 17:33:02   Visit  2065

在IIS中设置HTTP响应标头

Access-Control-Allow-Headers:x-requested-with
access-control-allow-methods:HEAD, GET
Access-Control-Allow-Origin:*
access-control-max-age:3000

重启iis应用,清空浏览器缓存,再次访问,已经可以跨域访问了

©2017 Leechg.com