



System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. 
turnstile.ready twice (and rendering the Turnstile twice)?turnstile.ready to fix this
async function fetchWithTurnstile(url: string, options: RequestInit): Promise < Response > {
let response = await fetch(url, options);
if (
response.headers.has('cf-mitigated') &&
response.headers.get('cf-mitigated') === 'challenge'
) {
console.log('Turnstile challenge detected');
await handleTurnstileChallenge();
await new Promise((resolve) => setTimeout(resolve, 1000));
response = await fetch(url, options);
}
return response;
}System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.turnstile.readyturnstile.ready