Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

vue+springboot 整合cas 发现session失效

springboot+cas官方有demo直接导包即可。但是之前jsp可以用
登录流程:前端-》后端判断有没session-》没有session跳转cas登录界面-》cas登陆完直接去前端-》后端判断有没session-》有,继续访问。
但是整上vue后session失效了,发现直接url访问后端会有session的话有个cookie
image.png
如果使用vue的axios调用的话却没有
image.png
如果是cookie禁用也像网上那样加了个
image.png
但是就是不顶用
后端因为url调用是可以的的所以也没改,凑合贴出来
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...