set authentication cookie to HttpOnly
This commit is contained in:
parent
3c7633564f
commit
ac701f28b5
|
@ -124,7 +124,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
// note that ConfigureApplicationCookie internally uses an ApplicationScheme of "Identity.Application"
|
||||
services.ConfigureApplicationCookie(options =>
|
||||
{
|
||||
options.Cookie.HttpOnly = false;
|
||||
options.Cookie.HttpOnly = true;
|
||||
options.Cookie.SameSite = SameSiteMode.Strict;
|
||||
options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest;
|
||||
options.Events.OnRedirectToLogin = context =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user