Search code examples
c#asp.net-mvcrecaptcha

This recaptcha is for testing purposes only


I'm doing recaptcha integration and I encountered the error as in the ss below.

enter image description here

Can you help with the solution?


Solution

  • OK, from a quick Google the key you are using (v3 key) is set up for testing purposes only.

    I'd like to run automated tests with reCAPTCHA. What should I do? For reCAPTCHA v3, create a separate key for testing environments. Scores may not be accurate as reCAPTCHA v3 relies on seeing real traffic.

    For reCAPTCHA v2, use the following test keys. You will always get No CAPTCHA and all verification requests will pass.

    The reCAPTCHA widget will show a warning message to ensure it's not used for production traffic.

    Source https://developers.google.com/recaptcha/docs/faq

    Simply create a new key that is for live environments.