reCaptcha 在本地有效但在服务器上无效

reCaptcha works locally but no on server

我使用 reCaptcha 作为我的登录表单。它在本地运行良好但在服务器上它 returns ReCaptchaResponse Object ( [success] => [errorCodes] => )

我该怎么办?

allow_url_fopen 在我的服务器中被禁用,通过启用它,问题得到解决