In FireFox getting Cookie “.AspNetCore.Mvc.CookieTempDataProvider” has been rejected because it is already expired. I know I can change the name of the default cookie name “.AspNetCore.Mvc.CookieTempDataProvider” and apply settings but so far no luck. Still getting the warning message.
// in .net core 5.0 > startup > configure block
var cookiePolicyOptions = new CookiePolicyOptions
{
MinimumSameSitePolicy = SameSiteMode.Strict,
Secure = CookieSecurePolicy.Always
};
app.UseCookiePolicy(cookiePolicyOptions);
// in .net core 5.0 > startup > configureservices block
services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromDays(30);
});
Tried clearing cache, no luck.