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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to