2

I am using reCAPTCHA on angular, and for a day or 2 it was working fine, but now I got a error which says

We detected that your site is not verifying reCAPTCHA solutions. This is required for the proper use of reCAPTCHA on your site. Please see our developer site for more information.

I am using like it mention

@Component({
    selector: 'my-app',
    template: `<re-captcha (resolved)="resolved($event)" siteKey="YOUR_SITE_KEY"></re-captcha>`,
}) export class MyApp {
    resolved(captchaResponse: string) {
        console.log(`Resolved captcha with response ${captchaResponse}:`);
    }
}

Am I missing something, do I manually need to do something with ${captchaResponse} as I am using angular.

1 Answer 1

1

You need to post validate the response value, by calling this url from your backend

https://www.google.com/recaptcha/api/siteverify

See here: https://developers.google.com/recaptcha/docs/verify

Sign up to request clarification or add additional context in comments.

8 Comments

I thought, the response we get ` resolved(captchaResponse: string) { console.log(Resolved captcha with response ${captchaResponse}:); }` is a valid response?
No, you still need to validate that response. Otherwise, anybody could just add a response field to your form. From the link I provided: "After you get the response token, you need to verify it with reCAPTCHA using the following API to ensure the token is valid."
How Can I do make the call, I am fairly new to making JSON calls or angular HTTP calls.
It depends on what you use in your backed (java/php/nodejs...)
Java. But isn't this call goes from front end to google servers?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.