ASP.NET MVC 开启AJAX跨域请求

<system.webServer>

<httpProtocol>

<customHeaders>

<add name="Access-Control-Allow-Origin" value="*" />

<add name="Access-Control-Allow-Headers" value="Content-Type" />

<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />

</customHeaders>

</httpProtocol>

</system.webServer>

posted @ 2015-06-19 21:09  b̶i̶n̶g̶.̶  阅读(274)  评论(0编辑  收藏  举报