【发布时间】:2015-06-01 14:21:20
【问题描述】:
我正在尝试将 reCaptcha gem 用于网站,并已遵循所有建议来构建验证码。
reCaptcha 显示在本地主机上,但在部署到生产环境时,我只收到“错误:站点密钥的域无效”
不确定我需要在这里做什么。站点部署在http://bit.ly/1EajuIk。
我使用的 Gem 版本是 recaptcha (0.3.6),配置文件是:
Recaptcha.configure do |config|
config.public_key = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
# Uncomment the following line if you are using a proxy server:
# config.proxy = 'http://myproxy.com.au:8080'
# Uncomment if you want to use the newer version of the API,
# only works for versions >= 0.3.7:
# config.api_version = 'v2'
end
【问题讨论】: