Hi
I'm trying to user Google ReCaptchav3 component with demo "Demos\Services\GoogleRecaptcha"
I set my Site Key into WebGoogleReCaptcha1.APIKey and set my URL path to my Web Core app into WebGoogleReCaptcha1.APIUrl (aka https:/www.domain.com/captchalab/index.html)
But if I see bottom right Captcha "logo"
Which seems to mean the API ack is OK on Google side but the web core component about captcha control isn't displaying anything
I saw there is a check on Google side about bot but none event occurs on WebGoogleReCaptcha1Verified
Couple of seconds later there is an error on
WEBLib.WebSocketClient.pas:135
WebSocket connection to 'wss://www.label-qualirepar.fr:8888/captchalab/' failed:
Connect @ WEBLib.WebSocketClient.pas:135
Create$1 @ WEBLib.Forms.pas:4194
c.$create @ rtl.js:332
$mod.$init @ WEBLib.Forms.pas:4586
loadimpl @ rtl.js:224
loaduseslist @ rtl.js:200
loadimpl @ rtl.js:212
run @ rtl.js:138
(anonymes) @ (index):14
How the component should be used, it seems connection occurs through wss on port 8888
Here test application is deployed into a vhost on apache server (80-443)
TMS Web Core document mentions there is a server side to consider. Is the component process this server side or is there something to add ? (which isn't present inside demo).
If I force button click on demo I get more error but it seems logical
WEBLib.GoogleReCaptcha.pas:185
GET https://www.label-qualirepar.fr/captchalab/03AD1IbLB_R76jy3hJ7EwZAYD6E3m0Lh…NihO5y-2mFl3IN3Hd4oKZ9g8ruliVQ_nXsBudyMKrbwOPiF7moK909rxMaBzzIKcCwz37AyMag 403 (Forbidden)
VerifyToken @ WEBLib.GoogleReCaptcha.pas:185
HandleToken @ WEBLib.GoogleReCaptcha.pas:171
(anonymes) @ WEBLib.GoogleReCaptcha.pas:202
Promise.then (asynchrone)
then @ recaptcha__fr.js:450
Verify @ WEBLib.GoogleReCaptcha.pas:198
WebButton1Click @ UCaptcha.pas:33
cb @ rtl.js:240
Click @ WEBLib.Controls.pas:1747
HandleDoClick @ WEBLib.Controls.pas:3744
cb @ rtl.js:236
WEBLib.GoogleReCaptcha.pas:146
Uncaught SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at Object.HandleResponse (WEBLib.GoogleReCaptcha.pas:146:1)
at XMLHttpRequest.cb (rtl.js:256:1)
HandleResponse @ WEBLib.GoogleReCaptcha.pas:146
cb @ rtl.js:256
load (asynchrone)
VerifyToken @ WEBLib.GoogleReCaptcha.pas:179
HandleToken @ WEBLib.GoogleReCaptcha.pas:171
(anonymes) @ WEBLib.GoogleReCaptcha.pas:202
Promise.then (asynchrone)
then @ recaptcha__fr.js:450
Verify @ WEBLib.GoogleReCaptcha.pas:198
WebButton1Click @ UCaptcha.pas:33
cb @ rtl.js:240
Click @ WEBLib.Controls.pas:1747
HandleDoClick @ WEBLib.Controls.pas:3744
cb @ rtl.js:236
Thanks
Sylvain