0

I found a good example on how to do Google reCAPTCHA v3 and it sucessfully gets the token by the reCAPTCHA but when I try to verify users response ,

I get following error when I try to run it in cloudshell , locally or on cloud run.

Access to XMLHttpRequest at 'https://www.google.com/recaptcha/api/siteverify' from origin 'https://8080-cs-123456789012-default.cs-us-east1-abcd.cloudshell.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Settings at google recaptcha is

settings

puzzled
  • 509
  • 1
  • 5
  • 18
  • code at https://github1s.com/Zujaj/recaptcha_v3_tutorial/blob/HEAD/lib/service/recaptcha_service.dart – puzzled Feb 20 '23 at 21:34

0 Answers0