Issue with not being able to register with google ReCaptcha v2

so I wanted to implement google recaptchav2 in my project but while doing so I got a problem where when I add click register button I am not able to register and it just reloads then when I want to the console to look for problem I saw Migrate entirely to Https to have cookies sent to same-site sub resource as issue what can I do to fix this if you request for code then I will be happy to provide it
4 Replies
Angius
Angius2mo ago
Well it tells you what to do Use HTTPS or set the SameSite cookie param to be Lax or None, IIRC Can't do the latter since it's Google setting the cookie So use HTTPS
AbishkarKafle
AbishkarKafle2mo ago
in program.cs file
builder.Services.Configure<CookiePolicyOptions>(options =>
{

options.MinimumSameSitePolicy = SameSiteMode.Lax;
options.Secure = CookieSecurePolicy.SameAsRequest;
});
builder.Services.Configure<CookiePolicyOptions>(options =>
{

options.MinimumSameSitePolicy = SameSiteMode.Lax;
options.Secure = CookieSecurePolicy.SameAsRequest;
});
is this it?
Angius
Angius2mo ago
That does nothing to the captcha cookie
AbishkarKafle
AbishkarKafle2mo ago
ahh captcha cookies
Want results from more Discord servers?
Add your server