diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index d4bf01610..164d86618 100644 --- a/Oqtane.Server/Startup.cs +++ b/Oqtane.Server/Startup.cs @@ -100,6 +100,7 @@ public void ConfigureServices(IServiceCollection services) options.Cookie.Name = Constants.AntiForgeryTokenCookieName; options.Cookie.SameSite = SameSiteMode.Strict; options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest; + options.Cookie.HttpOnly = true; }); services.AddIdentityCore(options => { })