No I haven't done use_ssl=True Can't find it in the book. What I did was to https the urls in gluon/tools.py and now it works anyware
API_SSL_SERVER = 'https://www.google.com/recaptcha/api' API_SERVER = 'https://www.google.com/recaptcha/api <http://www.google.com/recaptcha/api>' VERIFY_SERVER = 'https://www.google.com/recaptcha/api/verify <http://www.google.com/recaptcha/api/verify>' Which release is using V2 ? I just use from gluon.tools import Recaptcha auth.settings.captcha = Recaptcha(request, PUBLIC_KEY,PRIVATE_KEY) on Version 2.10.4-stable+timestamp.2015.04.26.15.11.54 But get V1 on my pages Thanks Best Regards Itamar Cohen Picatek Ahornvej 27 DK-7700 Thisted Denmark www.picatek.dk i...@picatek.dk T: +45 97 91 07 82 M:+45 29 89 07 82 On Tue, Jun 2, 2015 at 3:09 PM, Niphlod <niph...@gmail.com> wrote: > are you using use_ssl=True to initialize the widget ? > > BTW: recent web2py releases have recaptcha2 that doesn't suffer from this > particular issue (i.e. it works with any scheme without explicitely > specifying) > > On Monday, June 1, 2015 at 8:04:24 PM UTC+2, icodk wrote: >> >> My recaptcha works fine on an http site but moving it to >> pythonanywhere.com that uses https break it in the browser(Chrome) >> As far as I can see the web2py selscts the wrong url (http instead of >> https) to the google captcha api server. >> The specific error I get is: >> Mixed Content: The page at ' >> https://napno.pythonanywhere.com/user/register#' was loaded over HTTPS, >> but requested an insecure script ' >> http://www.google.com/recaptcha/api/challenge?k=6LdKqAcTAAAAADsi5vHZM5afAQkhpM8F9S4cQ6T1'. >> This request has been blocked; the content must be served over HTTPS. >> >> looking into gluon/tools.py I can see that both servers are defined: >> API_SSL_SERVER = 'https://www.google.com/recaptcha/api' >> API_SERVER = 'http://www.google.com/recaptcha/api' >> VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify' >> >> but the wrong server is selected >> Any idea ? >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.