The problem + info:
I got the same problem and solved it. 3 - 4 days ago recaptcha was working fine on a.b.c.local. Now Recaptcha is always returning 'success' : 'false' if you run it on a.b.c.local. I didn't test it on a.local but I assume it's the same result. It's only accepting localhost for local dev. Why, Google?
By the way, thanks for the tip with localhost. Changing the domain temporarily to localhost did the trick and at least showed me my keys and code are fine and working.
Please note that recaptcha is showing a "recaptcha is running on localhost" notic while you don't see this notice when running it on a.b.c.local.
This new "local dev only on 'localhost'" feature (bug?) is really annoying and I hope google will change this back to *.local as the domain is official (see
https://en.wikipedia.org/wiki/.local).
The solution:Shange your *.local domains to *.localhost in your web servers config as well as your systems host file - and it's working again even without the "recaptcha is running on localhost" notice popping up.