Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

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

firefox带不了服务器返返回设置的cookie,而IE却可以

登陆的时候服务器返回的set-cookie里面设置了一个带session的cookie,登陆成功后跳转到其他页面(主页)。主页上的每个ajax请求都要带上这个session才能正确返回。
1、现在是IE正常,登陆之后这个带了session的cookie能够正常带在请求里面,而firefox和chrome都不行,没有这个cookie,xhr.withCredentials = true;也设置了。
2、firefox一直提示:由于是跨站上下文,且samesite的值是lax或者strict,已拒绝cookie session,已经按照网上的禁用chrome samesite,还是没效果。
不知哪位遇到过这种情况?有什么有效的解决办法吗?


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

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...