Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g-recaptcha-response not set for iOS #59

Open
djmattski opened this issue Aug 7, 2020 · 4 comments
Open

g-recaptcha-response not set for iOS #59

djmattski opened this issue Aug 7, 2020 · 4 comments

Comments

@djmattski
Copy link

Have an issue that seems to be only for iOS where the error of :

UndefinedOffset\NoCaptcha\Forms\NocaptchaField.EMPTY : Please answer the captcha, if you do not see the captcha you must enable JavaScript

is kicking in. This is using NoCaptcha out of the box in a SS4 set up with UserDefined Forms. The ReCaptcha account is set up for invisible V2 as is the configuration in yml.

It may be that there is something peculiar to our code - but wondering if you are able to replicate.
Cheers

@UndefinedOffset
Copy link
Owner

Which version of Silverstripe and User Defined forms are you using?

@djmattski
Copy link
Author

Sorry should have said.
Version 2.0.5 of this module
Version 4.5.3 Silverstripe
Version 5.5.2 Userforms

@jesscoreed
Copy link

We are also having this issue, however not just on iOS, the g-recaptcha-response is empty every time. Wondering if you ever found a solution for this @djmattski?

@djmattski
Copy link
Author

Hey @jesscoreed ... this feels like an age ago. I think we did resolve this one (apologies should have mentioned on this issue when we did).

If I recall I think it came down to a CSP thing for us, as it was really only iOS in our case. Turns out that Safari does not respect a script-src in the CSP and so ReCaptcha was being blocked. We had to add it in twice, once to the default-src and again to the script-src. You will still get a warning in Safari that it does not recognize script-src but that is for them to catch up with the rest of the field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants