Skip to content

Commit

Permalink
Set __Host- prefix to session cookie
Browse files Browse the repository at this point in the history
WE2-854

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and mrts committed Feb 27, 2024
1 parent 9e23c7f commit 9cc7a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebEid.AspNetCore.Example/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void ConfigureServices(IServiceCollection services)

services.AddSession(options =>
{
options.Cookie.Name = "WebEid.AspNetCore.Example.Session";
options.Cookie.Name = "__Host-WebEid.AspNetCore.Example.Session";
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
options.Cookie.SameSite = SameSiteMode.Strict;
options.IdleTimeout = TimeSpan.FromSeconds(60);
Expand Down

0 comments on commit 9cc7a9d

Please sign in to comment.