reCaptcha v1 在基于 cordova 的应用程序中突然停止工作

reCaptcha v1 suddenly stopped working in cordova-based app

我们基于 Cordova 的产品应用程序使用 reCaptcha v1。 我已经看到它必须更新,否则它将在 3 月 31 日之后停止工作,如下所示: https://developers.google.com/recaptcha/docs/faq

What happens to reCAPTCHA v1? Any calls to the v1 API will not work after March 31, 2018. Starting in November 2017, a percentage of reCAPTCHA v1 traffic will begin to show a notice informing users that the old API will soon be retired.

但似乎从几天开始它突然停止工作而我们这边没有任何改变。

只是不再加载验证码图像。

在控制台中我只看到这条警告消息:

Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

我想知道是否还有其他人面临这个问题。 谢谢

This page 说的不一样:

reCAPTCHA V1 - Unsupported

reCAPTCHA V1 has been deprecated since May of 2016 and will not work for new sites. reCAPTCHA v1 is no longer supported and continued functionality can not be guaranteed. Please switch to one of the options above.

(重点是我的)

也许他们的后端发生了一些变化,现在它无法与您的 settings/API 调用一起使用。

现已修复。我们在过去 24 小时内也遇到了同样的问题,但看起来 Google 已经修复了他们的 API 响应并且不再使用 document.write()。请确保您在 url 中使用 'ajax=1' 来请求挑战。 类似于:https://www.google.com/recaptcha/api/challenge?k=public_api_key_here&ajax=1&lang=en