Skip to content

Commit 2ec3631

Browse files
committed
mark GuestUserGuid cookie as Essential
1 parent 71d74ff commit 2ec3631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Modules/SimplCommerce.Module.Core/Extensions/WorkContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ private void SetUserGuidCookies(Guid userGuid)
8787
_httpContext.Response.Cookies.Append(UserGuidCookiesName, _currentUser.UserGuid.ToString(), new CookieOptions
8888
{
8989
Expires = DateTime.UtcNow.AddYears(5),
90-
HttpOnly = true
90+
HttpOnly = true,
91+
IsEssential = true
9192
});
9293
}
9394
}

0 commit comments

Comments
 (0)