C
Join ServerC#
help
SameSite problem - google cookies
LLary10/26/2022
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
I still get this warning even after I wrote this in program.cs.
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromHours(4);
options.Cookie.SameSite = SameSiteMode.None;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
})
.AddGoogle(GoogleDefaults.AuthenticationScheme, googleOptions =>
{
googleOptions.ClientId = configuration["Authentication:Google:ClientId"];
googleOptions.ClientSecret = configuration["Authentication:Google:ClientSecret"];
googleOptions.CorrelationCookie.SameSite = SameSiteMode.None;
googleOptions.CorrelationCookie.SecurePolicy = CookieSecurePolicy.Always;
});
DDuke10/26/2022
where are you getting the warning
LLary10/26/2022

LLary10/26/2022
I will be back in 30 minutes
LLary10/26/2022
I am back