I am using react-google-invisible-recaptcha. but it is not working when page load it shows alert like "Cannot contact reCAPTCHA. Check your connection and try again" even though internet is faster. how can i use invisible-reCAPTCHA. is there way to overcome from this problem.
相关问题
- How to toggle on Order in ReactJS
- Refreshing page gives Cannot GET /page_url in reac
- Adding a timeout to a render function in ReactJS
- React Native Inline style for multiple Text in sin
- Issue with React.PropTypes.func.isRequired
相关文章
- Why would we use useEffect without a dependency ar
- Is it possible to get ref of props.children?
- Stateless function components cannot be given refs
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
- Material-UI [v0.x] RaisedButton on hover styles
- Remove expo from react native
- ReactJS toLowerCase is not a function
I had the same problem (continuous messages "Cannot contact reCAPTCHA. Check your connection and try again") which drove me crazy.
Then I discovered that I had registered a "reCaptcha V2" for my site, but used the site key and the secret key to create an "invisible reCaptcha".
After registering an "invisible reCaptcha" for the same domain, I got a different key pair that worked flawlessly.
I concluded that the three types of reCaptcha (V2, invisible and Android) produce specific key pairs. Every key pair is unique for the reCaptcha type that has been registered for the domain, and cannot be used interchangeably for other reCaptcha types. On the other hand, one may register different reCaptcha types for the same domain, if needed.
Define domain name like this, While working with localhost
While registering reCaptcha, I gave
Domain
aslocalhost
. It solved the error for me. (I am using Visual Studio 2017, and I am running my web application on localhost.)