w3yyb / w3yyb.github.io

Build a Jekyll blog my github homepage
http://lenix.xyz
MIT License
0 stars 0 forks source link

archives/7022 #7

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

对于未来chrome80 samesite问题的兼容解决方案 | Lenix Blog

对于未来chrome80 samesite问题的兼容解决方案 | 未来chrome80会默认(SameSite: lax)在跨域请求的情况下不允许跨域携带cookie给后端,导致所有跨域场景下使用cookie进行鉴权的服务会受到影响。 网站可以选择显式关闭SameSite属性,将其设为None。不过,前提是必须同时设置Secure属性(Cookie 只能通过 HTTPS

https://blog.p2hp.com/archives/7022