【问题标题】:recaptcha not showing on centos server在centos服务器上没有显示recaptcha
【发布时间】:2013-04-25 08:54:17
【问题描述】:

我在其中一个页面上使用了 recaptcha。当在本地部署时,一切正常,但在部署到 CentOS 服务器时,图像没有呈现。我的申请中有以下内容:

$.getScript('http://www.google.com/recaptcha/api/js/recaptcha_ajax.js',
                          function showRecaptcha() {         
                                Recaptcha.create("my_public_key",
                                    "recaptcha_div",
                                    {
                                      theme: "clean",
                                      callback: Recaptcha.focus_response_field
                                    }
                                );
                  }); 

我编辑/重新启动了我的 iptables 以接受端口 80 上的输出:

-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 2077 -j ACCEPT
-A OUTPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A cP-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

还是什么都没有。我什至以 root 身份在 Tomcat 上运行应用程序,结果相同...有什么想法吗?

【问题讨论】:

    标签: linux centos recaptcha iptables


    【解决方案1】:

    所以没有技术问题,只是我使用的recaptcha密钥用于不同的域......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-05
      • 1970-01-01
      • 2011-10-24
      • 2015-09-24
      • 2019-08-02
      • 2019-01-03
      相关资源
      最近更新 更多