Skip to content
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

session id 一致性问题 #874

Closed
wangtianabc opened this issue Jul 16, 2018 · 2 comments
Closed

session id 一致性问题 #874

wangtianabc opened this issue Jul 16, 2018 · 2 comments

Comments

@wangtianabc
Copy link

const service = axios.create({
baseURL: process.env.BASE_API, // api的base_url
timeout: 5000, // request timeout
withCredentials: true
})
设置了withCredentials后,依然无法获取一致的sessionid

@PanJiaChen
Copy link
Owner

sessionid 是什么?存在哪里?

@wangtianabc
Copy link
Author

1.解决了,把mock.js注释掉就可以了
2.sessionid 是web容器(tomcat)的会话ID
3.谢谢

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