1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 有关如何配置 ASP.NET 应用程序的详细信息,请访问
4 http://go.microsoft.com/fwlink/?LinkId=169433
5 -->
6
7 <configuration>
8 <system.web>
9 <compilation debug="true" targetFramework="4.5" />
10 <httpRuntime targetFramework="4.5" />
11 </system.web>
12 <system.webServer>
13 <httpProtocol>
14 <customHeaders>
15 <add name="Access-Control-Allow-Origin" value="*"/>
16 <add name="Access-Control-Allow-Headers" value="Content-Type"/>
17 <add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS"/>
18 </customHeaders>
19 </httpProtocol>
20 </system.webServer>
21 </configuration>