recaptcha
recaptcha copied to clipboard
Error "Invalid domain" when in iframe srcdoc only
Good day!
We created a recaptcha without "Verify the origin of reCAPTCHA solutions":

Now, it works great in most cases, but one of our use cases requires recaptcha to be placed in iframe srcdoc attribute. That gives us error Invalid domain for site key
Here is jsfiddle with repro with working example (normal recaptcha) and not working example (recaptcha in srcdoc): https://jsfiddle.net/dariusmailerlite/7026Ldpe/
I got the same issue. Really need help!
@daraz999 we're facing the same issue. Were you able to find a workaround?
@daraz999 we're facing the same issue. Were you able to find a workaround?
No workaround...
I take it there is still no solve for this?
Hopefully anyone looking for this will find my answer, but this came to light to me because GoDaddy's site building loads custom JavaScript this way, so will not be able to load reCaptcha's.
Same issue by me, haven't found any workaround yet.
Having same issue , no workaround found yet.
Was anyone able to find a workaround? I'm running into a similar issue where recaptcha is loaded within the srcdoc. I successfully retrieve the token but when I post the token, siteKey, and expectedAction to https://recaptchaenterprise.googleapis.com, I only receive BROWSER_ERROR with no additional context.