c# webservice ajax跨域 session使用配置 2018-04-07 本文已影响49人 埃罗芒老兄 后台方法添加 EnableSession = true Web.config添加<add name="Access-Control-Allow-Credentials" value="true" /> ajax添加xhrFields: {withCredentials: true}