From 3a22aa6c419142b225677e57b35b2d5a1816aad9 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Wed, 26 Jun 2024 15:51:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9debug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84set-cookies=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/controller/accapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/controller/accapi.go b/backend/controller/accapi.go index 2d0bbe7..cd1670e 100644 --- a/backend/controller/accapi.go +++ b/backend/controller/accapi.go @@ -98,8 +98,8 @@ func (ar *AccountRouter) LoginAccount(c *gin.Context) { Value: token, Path: "/", Domain: domain, - Secure: false, - SameSite: http.SameSiteLaxMode, + Secure: true, + SameSite: http.SameSiteNoneMode, HttpOnly: false, MaxAge: viper.GetInt("auth.jwt.expire"), })