好的,找到解决cookie问题的方法。
请参阅XHR规范,jQuery文档和StackOverflow。
切换协议和/或子域时发送cookie的解决方案是将
withCredentials属性设置为
true。
例如(使用jQuery)
$.ajax( { xhrFields: { withCredentials: true } });
好的,找到解决cookie问题的方法。
请参阅XHR规范,jQuery文档和StackOverflow。
切换协议和/或子域时发送cookie的解决方案是将
withCredentials属性设置为
true。
例如(使用jQuery)
$.ajax( { xhrFields: { withCredentials: true } });