Updated Project from .Net4.8 to .Net8 and I am getting Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "temp" is not present. at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext) at namespace.ValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context) I found that if I debug var tokens = Antiforgery.GetAndStoreTokens(httpContext) - the cookie token is null but request token is not null Continue reading...