c# webservice ajax跨域 session使用配置

2018-04-07  本文已影响49人  埃罗芒老兄
  1. 后台方法添加 EnableSession = true
  2. Web.config添加<add name="Access-Control-Allow-Credentials" value="true" />
  3. ajax添加xhrFields: {withCredentials: true}
上一篇 下一篇

猜你喜欢

热点阅读