How to use recaptcha google local host?

I’m trying to use recaptcha from google local, but it gives an error: for site owner: Invalid site key.

Has anyone ever experienced this ? How could I use it locally?


Seems you need to add it to supported domains:

I’m getting an error “Localhost is not in the list of supported domains”. What should I do?

localhost domains are not supported by default. If you wish to continue supporting them for development you can add them to the list of supported domains for your site key. Go to the reCAPTCHA Enterprise console or to the reCAPTCHA console, as appropriate, to update your list of supported domains. We advise to use separate keys for development and production, and to only allow localhost on your development site key.