简体   繁体   English

Google invisible recaptcha 停止在 AU 工作

[英]Google invisible recaptcha stopped working in AU

Starting from the 18th of June, the Recaptcha on our Magento M1 project has stopped working.从 6 月 18 日开始,我们 Magento M1 项目的 Recaptcha 停止工作。 In recaptcha__en.js script function Array.prototype.filter returns an error this.each is not a function, because this is not an Array, it's NodeList, and it can't be filtered like this.在recaptcha__en.js脚本function Array.prototype.filter返回错误this.each is not a function,因为这不是Array,是NodeList,不能这样过滤。

在此处输入图像描述

On the project side, we send a request to URL https://www.google.com/recaptcha/api.js , which returns different responses for different countries.在项目端,我们向 URL https://www.google.com/recaptcha/api.js发送请求,对于不同的国家返回不同的响应。

For AU IP (Also checked IE IP) request script src ashttps://www.gstatic.com/recaptcha/releases/FDTCuNjXhn1sV0lk31aK53uB/recaptcha__en.js对于 AU IP(还检查了 IE IP)请求脚本 src 为 https://www.gstatic.com/recaptcha/releases/FDTCuNjXhn1sV0lk31aK53uB/recaptcha__en.js

And for EU region it uses https://www.gstatic.com/recaptcha/releases/6OAif-f8nYV0qSFmq-D6Qssr/recaptcha__en.js对于欧盟地区,它使用https://www.gstatic.com/recaptcha/releases/6OAif-f8nYV0qSFmq-D6Qssr/recaptcha__en.js

Please advise how to solve the problem so we could re-enable the Recaptcha.请告知如何解决问题,以便我们重新启用 Recaptcha。 Could you also tell what could cause it from stopping working?你能告诉我是什么导致它停止工作吗?

Same here, the problem started today at the same time in magento 1, solved with this js:同样在这里,问题今天在magento 1的同一时间开始,用这个js解决了:

if ('NodeList' in window) {
    if (!NodeList.prototype.each && NodeList.prototype.forEach) {
        NodeList.prototype.each = NodeList.prototype.forEach;
    }
}

I have the same problem.我也有同样的问题。 I solved it by adding these lines of code just before you have the google ready function call.我通过在谷歌准备好 function 调用之前添加这些代码行来解决它。 grecaptcha.ready(...

//fix google recaptcha
if ('NodeList' in window) {
    if (!NodeList.prototype.each && NodeList.prototype.forEach) {
        NodeList.prototype.each = NodeList.prototype.forEach;
    }
}

And the error has been removed.并且错误已被删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM