Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update cookie attrs
Stevence663efc1467
diff --git a/api/v2/auth_service.go b/api/v2/auth_service.goindex 059ef7cd8..e7768a950 100644--- a/api/v2/auth_service.go+++ b/api/v2/auth_service.go@@ -165,7 +165,7 @@ func (s *APIV2Service) doSignIn(ctx context.Context, user *store.User, expireTimcookieExpires = time.Now().AddDate(100, 0, 0)}if err := grpc.SetHeader(ctx, metadata.New(map[string]string{- "Set-Cookie": fmt.Sprintf("%s=%s; Path=/; Expires=%s; HttpOnly; SameSite=Strict", auth.AccessTokenCookieName, accessToken, cookieExpires.Format(time.RFC1123)),+ "Set-Cookie": fmt.Sprintf("%s=%s; Path=/; Expires=%s; HttpOnly; SameSite=None; Secure", auth.AccessTokenCookieName, accessToken, cookieExpires.Format(time.RFC1123)),})); err != nil {return status.Errorf(codes.Internal, "failed to set grpc header, error: %v", err)}