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

electron项目登陆后未能设置cookie、 #719

Open
andwind1223 opened this issue Dec 24, 2024 · 4 comments
Open

electron项目登陆后未能设置cookie、 #719

andwind1223 opened this issue Dec 24, 2024 · 4 comments

Comments

@andwind1223
Copy link

使用版本:

报错信息:

希望结果:

复现步骤:

< 备注:如果复现步骤比较复杂,请将 demo 上传到 gitee 并留下地址 >

@andwind1223
Copy link
Author

前端登录后,后端执行了StpUtil.login(userInfo.getId());
前端再发送请求,后端报错

@andwind1223
Copy link
Author

cn.dev33.satoken.exception.NotLoginException: 未能读取到有效 token

@andwind1223
Copy link
Author

请求头里没有设置cookie字段

@click33
Copy link
Collaborator

click33 commented Dec 24, 2024

参考前后端分离模式,使用header头提交token
https://sa-token.cc/doc.html#/up/not-cookie

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