react-native-google-recaptcha-v2 icon indicating copy to clipboard operation
react-native-google-recaptcha-v2 copied to clipboard

Invalid domain for site key

Open lucianoacsilva opened this issue 4 years ago • 4 comments

Hello,

I'm trying to use the localhost domain on the sitekey when configuring recaptcha. However, when I try to activate it on my RN app, it returns:

"Error for site owner: Invalid domain for site key"

I use the http://localhost in BaseUrl variable, and the domain localhost is included in reCAPTCHA configuration on the reCAPTCHA Google site. What value should I use for these variables (or for the siteKey variable)? And does it make sense have a siteKey, since our application is not a PWA, but a mobile one?

lucianoacsilva avatar May 22 '20 13:05 lucianoacsilva

same thing over here, could you fix it? how?

jr-neivor avatar Nov 17 '20 23:11 jr-neivor

any once can helpout ? i am facing same issue

muhammadashfaq avatar Dec 02 '20 04:12 muhammadashfaq

@lucianoacsilva @muhammadashfaq @zyos-elitgon have anyone of you found a fix for this problem? I have the same one and I'm struggling with it

jazibabdullah1 avatar May 17 '21 10:05 jazibabdullah1

I was having the same problem to test the library in development environment (localhost), I just added the protocol:

WRONG baseUrl="127.0.0.1"

RIGHT baseUrl="http://127.0.0.1"

GuilhermeTrivilin avatar Jul 22 '21 17:07 GuilhermeTrivilin