[Yandex Cloud documentation](../../../index.md) > [All solutions](../../index.md) > [SmartCaptcha](../index.md) > Resolving the `Key cannot be used on the domain captcha-api.yandex.ru` error

# Fixing the `Key cannot be used on the captcha-api.yandex.ru domain` error



## Issue description {#issue-description}

When testing or setting up SmartCaptcha locally, you get this error:
```
Error: Key cannot be used on the captcha-api.yandex.ru domain
```

## Solution {#issue-resolution}

Check the list of addresses and names you use when debugging SmartCaptcha. Typically, such an error means there are now local addresses in the host list.

Add `localhost` and `127.0.0.1` to the host list in the SmartCaptcha settings.