Reputation: 13753
does it?
Everything is working fine, until I send the user response to the google server to verify. This is the code that sends the response:
$http({
method: "get",
url: "https://www.google.com/recaptcha/api/siteverify",
params: {
secret: 'my-secret-key',
response: $scope.response
}
}).success(function (response) {
console.log(response);
}).error(function (errResponse) {
console.log(errResponse)
});
Then, I am getting this:
Upvotes: 0
Views: 1177
Reputation: 2155
Yes it works, but you can't send ajax/http requests to validate captcha from js. Yous should write your own backend function which will send this request.
Something like this:
Upvotes: 1