damienbod / IdentityServer4AspNetCoreIdentityTemplate

An ASP.NET Core 6.0 IdentityServer4 Identity Bootstrap 4 template with localization

Home Page:https://www.nuget.org/packages/IdentityServer4AspNetCoreIdentityTemplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Same Site for Anti forgery cookie

damienbod opened this issue · comments

Add Same Site for Anti forgery cookie

services.AddAntiforgery(options =>
{
options.SuppressXFrameOptionsHeader = true;
options.Cookie.SameSite = SameSiteMode.Strict;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
});