【发布时间】:2015-03-03 12:48:51
【问题描述】:
我在尝试使用 <p:captcha> 时遇到问题。我在 FireFox v34.0.5 中收到以下错误:
Blocked loading mixed active content "http://www.google.com/recaptcha/api/challenge?k=xxxxxxxxxxxxxxxxxxxxxxxxx"
检查按钮显示,但验证码图像不显示
我的应用程序托管在安全 (HTTPS) 服务器中,但验证码似乎使用 HTTP 连接到非安全服务器
这是我的 web.xml 文件:
<context-param>
<param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
<param-value><xxxxx_recaptcha_generated_public_captcha_key></param-value>
</context-param>
<context-param>
<param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
<param-value><xxxxx_recaptcha_generated_private_captcha_key></param-value>
</context-param>
还有我的视图文件(forgottenOPassword.xhtml):
<p:captcha label="Captcha" rendered="#{passBB.showCaptcha}"/>
<p:commandButton actionListener="#{passBB.verifyCaptcha}"
ajax="false"
icon="ui-icon-check"
rendered="#{passBB.showCaptcha}"
value="Check"/>
【问题讨论】:
-
我已经用 firefox 版本 (v34.0.5) 更新了我的问题
标签: jsf firefox primefaces captcha