Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
baoduy committed Jun 26, 2023
1 parent db23b92 commit 321c991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HBD.HealthZ.UI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.CookiePolicy;
using Microsoft.Identity.Web;

var builder = WebApplication.CreateBuilder(args);
Expand Down Expand Up @@ -39,7 +40,9 @@

builder.Services.Configure<CookiePolicyOptions>(options =>
{
options.MinimumSameSitePolicy = SameSiteMode.Strict;
options.MinimumSameSitePolicy = SameSiteMode.Lax;
options.Secure = CookieSecurePolicy.Always;
options.HttpOnly = HttpOnlyPolicy.Always;
});

//Health Check
Expand Down

0 comments on commit 321c991

Please sign in to comment.