起因
网站登录时,本地前端代码请求线上后台不能正常登录,检查跨域不存在问题;
且网站线上登录正常,其他人本地登录也正常。
检查
console中发现:
1
A cookie associated with a cross-site resource at http://192.168.5.23/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
network请求中,Set-Cookie中发现黄色感叹号,提示:
1
this set-cookie didn't specify a "SameSite" attribute ......