Skip to content

Commit

Permalink
Setting cookie policy (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
csharpfritz authored Aug 31, 2023
1 parent 417c050 commit 57f2132
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TagzApp.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ private static void Main(string[] args)
app.UseForwardedHeaders();
}

app.UseCookiePolicy(new CookiePolicyOptions()
{
MinimumSameSitePolicy = SameSiteMode.Lax
});
app.UseCertificateForwarding();

//app.UseHttpsRedirection();
app.UseStaticFiles();

Expand Down

0 comments on commit 57f2132

Please sign in to comment.