解决 Ionic 浏览器跨域问题

<system.webServer>     
<httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept, Authorization" />
        <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
      </customHeaders>
    </httpProtocol> 

  在web.config的system.webServer节点下添加以上代码system.webServer

posted @ 2017-06-07 09:40  吉喆吉  阅读(1116)  评论(0编辑  收藏  举报