The problem in my case is in wp-content/plugins/recaptcha-in-wp-comments-form/js/recaptcha.js here:
var griwpcProcessAjaxResponse = function( ajaxResponse ) {
if ( ( ajaxResponse.status === 200 ) && ( ajaxResponse.readyState === 4 ) && ( ajaxResponse.statusText === "OK" ) ) {
let processed = JSON.parse( ajaxResponse.response );
if ( processed.data.result === 'OK' )
griwpcChangeButton ( true, processed.data.address );
else
console.log ( 'Error verifying reCAPTCHA: ', processed );
} else {
console.log ( 'Error AJAX Call: ', ajaxResponse );
}
}
When I’m using firefox ajaxResponse.statusText="OK"
but when I’m using chrome it’s an empty string and it doesn’t enters into the if, but if you add this to the if && ( ajaxResponse.statusText === "" )
it works.
I hope it helps somebody.
-
This reply was modified 5 years, 1 month ago by zsolt95.