标签:cal 技术 png not ESS nbsp HERE ade one
//授权的请求域名
actionContext.Response.Headers.Add("Access-Control-Allow-Origin", Origin);
//授权的请求方式
actionContext.Response.Headers.Add("Access-Control-Allow-Methods", "*"); //GET,POST,PUT,DELETE,OPTION
actionContext.Response.Headers.Add("Access-Control-Allow-Headers", "x-requested-with");
actionContext.Response.Headers.Add("Access-Control-Allow-Credentials", "true");
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Headers" value="content-type" />
<add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
标签:cal 技术 png not ESS nbsp HERE ade one
原文地址:https://www.cnblogs.com/zhian/p/9812479.html