<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<!-- 其他配置 -->
</system.web>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
<!-- 其他配置 -->
</system.webServer>
</configuration>
网友评论