You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't researched this well, but the Recaptcha.cs code is still using WebClient() and should be updated to using System.Net.Http and then change the code to something like:
Note: this is an example from our Cloudflare Turnstile implementation, NOT intended as the way to update the existing Google reCaptcha code.
var client = new HttpClient();
dynamic jsonObject = new { secret = privateKey, response = encodedResponse};
var content = new StringContent(JsonConvert.SerializeObject(jsonObject), System.Text.Encoding.UTF8, "application/json");
//URL updated per https://developers.cloudflare.com/turnstile/migration/recaptcha/
var CloudflareReply = await client.PostAsync("https://challenges.cloudflare.com/turnstile/v0/siteverify", content);
The text was updated successfully, but these errors were encountered:
I haven't researched this well, but the Recaptcha.cs code is still using WebClient() and should be updated to
using System.Net.Http
and then change the code to something like:Note: this is an example from our Cloudflare Turnstile implementation, NOT intended as the way to update the existing Google reCaptcha code.
The text was updated successfully, but these errors were encountered: