web.coofig 配置跨域问题

<customHeaders>
        <add name="Access-Control-Max-Age" value="30000"/>
        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type,Authorization" />
        <add name="Access-Control-Allow-Methods" value="PUT,GET,POST,DELETE,OPTIONS"/>
      </customHeaders>

 

posted on 2018-03-19 15:46  YellowCool  阅读(131)  评论(0编辑  收藏  举报

导航