C#的config配置
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
<system.webServer>
或者response.addHeader("Access-Control-Allow-Origin", "*");// 允许所有的域名
或者response.addHeader("Access-Control-Allow-Origin", "http://camnpr.com");// 允许指定的域名