set HttpOnly to false for Localization cookie in static rendering

This commit is contained in:
sbwalker
2024-10-14 16:49:14 -04:00
parent 93d4bfcd7a
commit 62d59a09cf
2 changed files with 9 additions and 9 deletions

View File

@ -609,7 +609,7 @@
Expires = DateTimeOffset.UtcNow.AddYears(1),
SameSite = Microsoft.AspNetCore.Http.SameSiteMode.Lax, // Set SameSite attribute
Secure = true, // Ensure the cookie is only sent over HTTPS
HttpOnly = false // cookie is updated using JS Interop
HttpOnly = false // cookie is updated using JS Interop in Interactive render mode
};
Context.Response.Cookies.Append(