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

cookie有的时候没有传到请求头里面? #2

Open
shilianmalaxiangguo opened this issue Jun 5, 2019 · 2 comments
Open

cookie有的时候没有传到请求头里面? #2

shilianmalaxiangguo opened this issue Jun 5, 2019 · 2 comments

Comments

@shilianmalaxiangguo
Copy link

你好,用你的源码做了一个后台管理

有的时候登录接口响应的cookie没有继续传到之后接口的请求里面

请问这个问题怎么解决呢?

@MuhammadIsSilent
Copy link

MuhammadIsSilent commented Jun 5, 2019 via email

@hzlshen
Copy link
Owner

hzlshen commented Jun 5, 2019

在axios封装的promise header 下面加全局的cookie 或者 main里加。指定登陆页设置cookie

@hzlshen hzlshen closed this as completed Jun 10, 2019
@hzlshen hzlshen reopened this Nov 16, 2021
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

3 participants