Troubleshoot reCAPTCHA issues

This page lists the common issues that you might encounter when using reCAPTCHA.

Invalid site key

If you see the Invalid site key error, your reCAPTCHA site key is no longer valid. Create a new key and install it on your web pages.

SecurityError: blocked a frame with origin "https://www.google.com" from accessing a frame with origin "&ltyour domain&gt"

This typically occurs if the reCAPTCHA widget HTML element is programmatically removed sometime after the end user clicks on the checkbox. We recommend using the grecaptcha.enterprise.reset() JavaScript function to reset the reCAPTCHA widget.

Localhost is not in the list of supported domains

Localhost domains are not supported by default. If you want to continue supporting them for development, you can add them to the list of supported domains for your site key. Go to the Google Cloud console 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.

My computer or network sends automated queries

If you were directed to this page from the reCAPTCHA widget, you might have seen this message: "We're sorry, but your computer or network may be sending automated queries. To protect our users, we can't process your request right now."

This can happen to legitimate users for a few reasons:

  • You might be on a shared network that is being used abusively.
  • Your internet service provider might have recently assigned you a suspicious IP address.
  • The site you are trying to access might be under heavy attack.

To troubleshoot these issues, refer to the unusual traffic help page.

reCAPTCHA returned BROWSER_ERROR when creating an assessment

BROWSER_ERROR tokens occur when the reCAPTCHA script cannot perform an execute operation. In most cases, this is due to a client-side network failure or timeout. You must retry execute() using the JavaScript.