8000 withCredentials 冲突 · Issue #95 · nuysoft/Mock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

withCredentials 冲突 #95

New issue

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

Closed
speedornothing opened this issue Feb 1, 2016 · 1 comment
Closed

withCredentials 冲突 #95

speedornothing opened this issue Feb 1, 2016 · 1 comment

Comments

@speedornothing
Copy link

页面引入 mock.js 后, jquery ajax 配置 withCredentials = true 是不起作用的, 去掉 mockjs 后 withCredentials 才会起作用. 猜测 mockjs 在劫持底层 xhr 后导致不兼容 withCredentials

我的使用场景比较特殊, 一部分数据是用 mockjs 模拟, 另一部分数据来自跨域请求

@nuysoft nuysoft closed this as completed in 5f4d246 Feb 2, 2016
@janeluck
Copy link
janeluck commented Jun 9, 2017

我也是部分mock部分跨域。 看了下源码, 初始化MockXMLHttpRequest时withCredentials的参数写的是false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0