标签:
在<system.webServer>配置下面加入
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
加这段的意思是给浏览器访问加上头,避免权限不足不让访问。
标签:
原文地址:http://www.cnblogs.com/boosasliulin/p/5260802.html