WebApi解决跨域问题

 

 

在web.config里边的system.webServer节点中添加:

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="*" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>

上一篇:实验四 Web服务器2


下一篇:flv文件解析