AF
This commit is contained in:
+4
-1
@@ -38,7 +38,10 @@ builder.Services.AddSession(options =>
|
||||
options.IdleTimeout = TimeSpan.FromHours(8);
|
||||
options.Cookie.HttpOnly = true;
|
||||
options.Cookie.IsEssential = true;
|
||||
options.Cookie.Name = ".Divers.Admin";
|
||||
options.Cookie.Name = ".Divers.Admin.AntiForgery";
|
||||
options.Cookie.Path = "/admin";
|
||||
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
|
||||
options.Cookie.SameSite = SameSiteMode.Lax;
|
||||
});
|
||||
|
||||
// ---- MySQL conn string from env ----
|
||||
|
||||
Reference in New Issue
Block a user