You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the support of the reCAPTCHA, and i found its config here.
However, here is the problem that some region cannot access google domain google.com(such as China),so the reCAPTCHA cannot be used in these region. Currently I can only disable reCAPTCHA to make the website available for registration.
The official solution is replace www.google.com to www.recaptcha.net (see as recaptcha offical doc can-i-use-recaptcha-globally)
here are the doc
Can I use reCAPTCHA globally?
Yes, please use "www.recaptcha.net" in your code in circumstances when "www.google.com" is not accessible.
First, replace <script src="https://www.google.com/recaptcha/api.js" async defer></script> with <script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
After that, apply the same to everywhere else that uses "www.google.com/recaptcha/" on your site.
Possible solution
Maybe a line can be added to the configuration file, such as
;Use www.google.com as default domain;In some region which cannot access google.com, using www.recaptcha.net to get accessRECAPTCHA_DOMAIN = www.google.com
If u need replace the domain, just change it
;Use www.google.com as default domain;In some region which cannot access google.com, using www.recaptcha.net to get accessRECAPTCHA_DOMAIN = www.recaptcha.net
Screenshots
The text was updated successfully, but these errors were encountered:
This change do fix the question that user cannot acces js files in some region. However, when i try to verify the whole login process, i found the request domain on gitea SERVER still be www.google.com when js file is from www.recaptcha.net . Then i still FAIL to finish the process.
If it's possible, request domain on gitea server can be configured as same as the js file's domain
[x]
):Description
Thanks for the support of the reCAPTCHA, and i found its config here.
However, here is the problem that some region cannot access google domain
google.com
(such as China),so the reCAPTCHA cannot be used in these region. Currently I can only disable reCAPTCHA to make the website available for registration.The official solution is replace
www.google.com
towww.recaptcha.net
(see as recaptcha offical doc can-i-use-recaptcha-globally)here are the doc
Can I use reCAPTCHA globally?
Yes, please use "www.recaptcha.net" in your code in circumstances when "www.google.com" is not accessible.
First, replace <script src="https://www.google.com/recaptcha/api.js" async defer></script> with <script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
After that, apply the same to everywhere else that uses "www.google.com/recaptcha/" on your site.
Possible solution
Maybe a line can be added to the configuration file, such as
If u need replace the domain, just change it
Screenshots
The text was updated successfully, but these errors were encountered: