From 6c69e2195f37bf0ac7715fb6a0d68e9691f62248 Mon Sep 17 00:00:00 2001 From: Ivan Vukman Date: Fri, 15 Dec 2023 23:54:24 +0100 Subject: [PATCH] Always use secure cookie policy --- src/AnagramSolver/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AnagramSolver/Program.cs b/src/AnagramSolver/Program.cs index 654853f..4438816 100644 --- a/src/AnagramSolver/Program.cs +++ b/src/AnagramSolver/Program.cs @@ -56,6 +56,7 @@ return Task.FromResult(null); }; options.Cookie.SameSite = SameSiteMode.Strict; + options.Cookie.SecurePolicy = CookieSecurePolicy.Always; }); builder.Services.AddHangfire(config => config.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)