Registering new google.com recaptcha site with localhost:8080 raised error

Viewed 4236

For @vue/cli 4.1.1 app I tried to register new google.com recaptcha site and got error :

The following domains are invalid: localhost:8080. A valid domain requires a host and must not include any protocol, path, port, query or fragment.

as usualy I develop @vue/cli app under localhost:8080 port(which is default). In which way it can be salved ?

Thanks!

1 Answers

As the error says, the domain must not include any port, and the 8080 is the port number.

All you have to do is register 'localhost' - no port number - and it should work. That's what I've done and it works great.

Related