Web.config 下<system.webServer> 节点下配置
<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="http://localhost:60699" /> <add name="Access-Control-Allow-Headers" value="*" /> <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE" /> </customHeaders> </httpProtocol>