From 9e72432f195825338a6614316ac4ced6704d74f6 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 5 Feb 2024 00:10:54 +0800 Subject: [PATCH] chore: tweak cookie attrs --- api/v2/auth_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/auth_service.go b/api/v2/auth_service.go index 25a43a4a..059ef7cd 100644 --- a/api/v2/auth_service.go +++ b/api/v2/auth_service.go @@ -231,7 +231,7 @@ func (*APIV2Service) SignOut(ctx context.Context, _ *apiv2pb.SignOutRequest) (*a func clearAccessTokenCookie(ctx context.Context) error { if err := grpc.SetHeader(ctx, metadata.New(map[string]string{ - "Set-Cookie": fmt.Sprintf("%s=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; SameSite=Strict", auth.AccessTokenCookieName), + "Set-Cookie": fmt.Sprintf("%s=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; SameSite=None; Secure", auth.AccessTokenCookieName), })); err != nil { return errors.Wrap(err, "failed to set grpc header") }