ERROR: Invalid domain for site key reCaptcha

2020-05-08 01:55发布

问题:

I registered my domain and added the key but want to test the site on my local machine. I publish the project on my machine to wwwroot and at the moment it runs on port number 8080.

I get the error ERROR: Invalid domain for site key reCaptcha when trying to run it on my local machine.

Is there a way testing this on the local machine?

回答1:

Check your domains at https://www.google.com/recaptcha/admin, if you are using localhost you most set your domain to "localhost".