HueiFeng

Microsoft MVP

Nginx


.NET Core SameSite cookie问题

异常提示 This setcookie was blocked because it had the "samesite=none" attribute but did not have the "secure" attribute, which is required in order to use "same=none" SameSite SameSite 有3个可选值 : Strict 禁止第三方 cookie Lax None 关闭 SameSite 选项. 其实在谷歌升级后呢,默认限制了跨域携带cookie给后端,在使用samesite=none后其实不仅仅如此,我们还需要设置Secure属性才可以生效,但是对于项目中有些不可告人的秘密,哈哈哈哈哈,所以此处不从项目中修改了我们将修Nginx服务器来解决SameSite的问题。 Nginx proxy_cookie_path 具体 …

ASP.NET Core .NET Nginx

  • 1