IdentityServer4 突然登录就不香了?SameSite?

链接地址:
https://web.dev/samesite-cookies-explained/

https://blog.chromium.org/2019/10/developers-get-ready-for-new.html

https://docs.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-3.1

自己的一个使用了IdentityServer4 的单点登录demo项目,突然就登录不好使了,一直在登录页,调试了一下发现登录流程也走了,也登录成功了,就是跳转的时候又回到了登录页,百思不得其解。知道后来在控制台看到了这个;

 英文不好翻一下;

 简单说就是在新版浏览器中要使用cookie 跨站点  就要设置SameSite=None并且还要使用https. 

原文地址:https://www.cnblogs.com/zhanghm1/p/13496237.html