B4J Question reCAPTCHA error "invalid-request-cookie"

moster67

Expert
Licensed User
Longtime User
I am using this example:
https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/#content
which I seem to have deployed correctly on my VPS and set up to communicate with my MySQL database (table is created in the DB).

However, using the above example and after registering for a reCAPTCHA api (the invisible one just like Erel's sample), and when clicking the Register button, I always get an "invalid-request-cookie" message. See the picture below:

In the log, I can see:
registerHelper: {"success":false,"errorMessage":"invalid-request-cookie"}

I registered using an ip-address as domain (haven't a domain associated yet) but I think it works since I get the reCAPTCHA on the web-page.

Any ideas what can be the error?

Edit: I was using the old version "reCAPTCHA V1" and not the invisible one as I mentioned.
To resolve this, I will probably need to use one of the newer ones.







upload_2017-12-18_16-27-23.png
 
Last edited:

moster67

Expert
Licensed User
Longtime User
I suspected this could be the case but since your online example is still working, I thought it might work.
I will try to implement the new one or bypass it for now until I find some time.
 
Upvote 0
Top