-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for hCaptcha and Friendly Captcha #2387
Added support for hCaptcha and Friendly Captcha #2387
Conversation
@@ -70,6 +94,11 @@ export class ReCAPTCHA extends React.Component { | |||
|
|||
script.src = scriptUrl; | |||
script.async = true; | |||
script.defer = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as with auth0.js, is setting defer
to true critical to get the functionality work ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing, this just supports legacy browsers that would instead load synchronously which is the true risk here. any browser that supports async would use async. Recaptcha, hCaptcha, and Friendly Captcha all specify the use of both to support legacy browsers. But again, happy to conditionally add to hCaptcha and Friendly Captcha if desired.
Changes
Added support for hCaptcha and Friendly Captcha as Captcha Providers in our Bot Detection Feature.