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

前后端分离的架构,客户端如何登陆? #5

Open
wangjia2016 opened this issue Jul 4, 2017 · 3 comments
Open

前后端分离的架构,客户端如何登陆? #5

wangjia2016 opened this issue Jul 4, 2017 · 3 comments

Comments

@wangjia2016
Copy link

前后端分离的架构,客户端如何登陆?如何授权

@wuwu20048
Copy link

登录后,服务端返回token给前端,前端每次请求,header都带上该token,

@wangjia2016
Copy link
Author

@wuwu20048 token 前端不能存储吧,前端存储有安全风险

@Flcwl
Copy link

Flcwl commented Dec 10, 2018

@wangjia2016 登录后可以存储在cookie里面,可以定个过期时间。登出后清空该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

3 participants