Recaptcha not working on https

后端 未结 7 1825

i have a site in codeigniter,and that site working perfectly on http.

My client moved the site to https.

Then now when user registr

7条回答
  •  情话喂你
    2020-12-18 01:45

    I got the same error an tried a couple of suggestions, but nothing realy worked.

    So I logged my network traffic and analyzed it. What it shows is that mid connection the servers changed from ipv4 to ipv6 and I remembered reading somewhere that recaptcha has a problem working on ipv6.

    So I changed @fsockopen($host, [...] to @fsockopen(gethostbyname($host), [...] and recaptcha worked again.

提交回复
热议问题