We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi作者好 下午在公司帮同事调东西的时候遇到了一个bug,在项目中require了mock之后,所有的请求、即使不通过mock,请求头都没法带上cookie 大概看了下源码,window.XMLHttpRequest被XHR替换了,而这个XHR里貌似把withCredentials设置成了false,所以请求都没法带上cookie。#234遇到的应该也是这个问题 建议是否可在Mock里加一个options,定义是否要替换原生的xhr方法,而不是在require的时候直接替换;或者对不走mock的接口直接调用原生的xhr,比如#285,应该都能解决这个问题 多谢!
The text was updated successfully, but these errors were encountered:
应该加上withCredentials的setter和getter
Sorry, something went wrong.
fix nuysoft#286
d2a4cf6
e397f15
No branches or pull requests
hi作者好
下午在公司帮同事调东西的时候遇到了一个bug,在项目中require了mock之后,所有的请求、即使不通过mock,请求头都没法带上cookie
大概看了下源码,window.XMLHttpRequest被XHR替换了,而这个XHR里貌似把withCredentials设置成了false,所以请求都没法带上cookie。#234遇到的应该也是这个问题
建议是否可在Mock里加一个options,定义是否要替换原生的xhr方法,而不是在require的时候直接替换;或者对不走mock的接口直接调用原生的xhr,比如#285,应该都能解决这个问题
多谢!
The text was updated successfully, but these errors were encountered: