Closed grega closed 2 years ago
@grega - thanks for that PR! Do you see a case where the custom host could be anything different from recaptcha.net? Based on the reCaptcha FAQ they only suggest that single option.
The reason I'm asking is whether to allow the user to pass anything they want, versus using a flag that will switch internally to the recaptcha domain.
@pdupavillon No, I don't 😄 I wrote this thinking that there might be, but realising that there probably wouldn't be.
Let me refactor into something that just provides a host
switch instead 👍
(or would you prefer the flag to be part of RecaptchaOptionsVx
?)
(or would you prefer the flag to be part of
RecaptchaOptionsVx
?)
yes please, with something like: useRecaptchaDomain thanks
All sorted I believe.
Thanks; I need to make some change on the ci-cd side. I'll ping you once the new version is released.
FYI - version 5.1.0 has been released with that change.
Thanks!
In some instances the default reCaptcha host www.google.com may be blocked. As detailed in the reCaptcha FAQ, the recommendation is to use the alternate host www.recaptcha.net in these situations.
This PR provides the ability to do so, via an optional
CUSTOM_HOST
parameter.