在web.config添加节点
<system.webServer>下添加
<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="*" /> </customHeaders>
</httpProtocol>