WepApi需要注意点

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Origin" value="*" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>

webapi支持跨域请求,配置文件需要配置允许所有请求源头

posted @ 2017-03-13 16:58  Lyfing  阅读(279)  评论(0)    收藏  举报