配置web.config加入以下信息
<system.webServer> <httpProtocol> <customHeaders> <remove name="X-Powered-By"/> <add name="Access-Control-Allow-Origin" value="*"/> <add name="Access-Control-Allow-Headers" value="*"/> <add name="Access-Control-Allow-Methods" value="*"/> <add name="X-Powered-By" value="*"/> </customHeaders> </httpProtocol> </system.webServer>