evenchange4 / react-grecaptcha

React.js Google reCAPTCHA v2 integration component.
https://react-grecaptcha.netlify.com
MIT License
51 stars 8 forks source link

Support recaptcha.net domain instead of google.com #114

Open MiroslavPetrik opened 5 years ago

MiroslavPetrik commented 5 years ago

In countries where google domain is blocked this won't work.

It could be configured with a boolean prop. :) Or maybe if that's too specific, you can leave it to the developer, by adding onScriptError prop, which could be passed to the script.onerror - currently I'm not able to handle the error easily.

olsonm16 commented 5 years ago

I've needed this too. Change up for review: https://github.com/evenchange4/react-grecaptcha/pull/115