本文介绍了我是否需要付费计划才能在Firebase功能上使用Recaptcha?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个firebase函数来进行我的网站的Recaptcha验证,但是当人们有了Spark(免费)计划并尝试向外部api发送请求时,却遇到了错误消息.

I created a firebase function for making my website's recaptcha validation, but I'm getting the error that people get when they have the Spark (free) plan and try to send a request to an external api.

这是我的错误:所有http上的Firebase函数ENOTFOUND请求

当其他人请求外部API时,这是一个错误:

And this is an error when someone else requested an external API: Firebase functions - getaddrinfo ENOTFOUND api.sandbox.paypal.com

从Firebase的定价页:

From Firebase's pricing page:

他们说

Google拥有的服务,所以在请求重新验证时这应该不是问题,对吧?

Google owned services they say, so this shouldn't be a problem when requesting a recaptcha validation, right?

推荐答案

不再需要在付费计划中调用reCAPTCHA服务器API,因为它已被列入白名单(只要您通过Recaptcha访问它) .google.com).您可以在此处.

It it no longer necessary to be on the paid plan to call the reCAPTCHA server API as it was recently whitelisted (as long as you're accessing it via recaptcha.google.com). You can read more about that here.

这篇关于我是否需要付费计划才能在Firebase功能上使用Recaptcha?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 03:13