Localhost is not in the list of supported domains for this site key reCAPTCHA I added google reCAPTCHA to my code but it is giving error as follows:
Label
laravelphp.com
Domains
(one per line)
webdesign.laravelphp.com
code.laravelphp.com
You have to add the localhost to the domain list. I had the same problem before.
but it is not accepting it.can you please tell me how to do it?
For development purposes add "localhost" to the list of domains.
I am getting this error:
URL starts with an invalid scheme
localhost:8000.com
```
Sometimes it takes up to 30 minutes or so for Google to digest the "supported domains" list from your admin panel. If others git this error, it might spontaneously start working after a lengthy (in developer terms) delay. That is what happened to me, and their docs do hint at that.
why are you using local host?
one, use valet. https://laravel.com/docs/5.5/valet
this vastly speeds up dev time.
if you can't open etc hosts, and update the local host entry. like this:
127.0.0.1 localhost foobar.dev # add as many as you like.
then use that in the google recaptcha. #again you can add as many as you like.
from your browser go to foobar.dev:80 or whatever port.
DONE
ps. this vastly helps you differentiate which localhost domains can be handled by different projects you are working on.
If you would like to run tests with recaptcha, use this KEY and SECRET
Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
Please sign in or create an account to participate in this conversation.