Do I need a paid plan for using recaptcha on firebase function?

≡放荡痞女 提交于 2019-12-08 01:48:44

问题


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.

This is my error: Firebase functions ENOTFOUND on all http requests

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

From Firebase's pricing page:

The Spark plan only allows outbound network requests to Google owned services

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


回答1:


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.




回答2:


Something in your code is reaching out to api.sandbox.paypal.com, which is not a Google-owned service. So you will indeed need to be on a paid plan for that.

Without seeing the minimal code that reproduces the problem it has hard to say what precisely calls Paypal.



来源:https://stackoverflow.com/questions/42857827/do-i-need-a-paid-plan-for-using-recaptcha-on-firebase-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!