Login secure problem

This commit is contained in:
2026-01-28 13:46:16 +01:00
parent 4c7e24c478
commit ea9673c29b
2 changed files with 3 additions and 5 deletions
@@ -55,8 +55,8 @@ namespace WorkFlowCheck.Web.Pages.Account
Response.Cookies.Append("AuthToken", token, new CookieOptions
{
HttpOnly = true,
Secure = true,
SameSite = SameSiteMode.Strict,
Secure = HttpContext.Request.IsHttps,
SameSite = SameSiteMode.Lax,
Expires = DateTimeOffset.UtcNow.AddDays(1)
});