我试图在我的rails项目中使用google ReCaptcha企业,但是我得到了这个错误:
{"error"=>{"code"=>403, "message"=>"The provided cloud project number does not own the given recaptcha key", "status"=>"PERMISSION_DENIED"}}我所拥有的:
我将数据发布到这个端点:
https://recaptchaenterprise.googleapis.com/v1beta1/projects/#{project_id}/assessments?key=#{API_key}请求的主体是:
{
event:
{
token: response_token,
siteKey: site_key,
userIpAddress: domain
}
}发布于 2021-12-08 08:57:42
正如OP在评论部分确认的那样,问题的根源在于错误的enterprise key。
您说得对,我在客户端使用了v3站点密钥,这意味着response_token是错误的。我忘了用企业密钥更新客户端。谢谢,伙计,现在起作用了
错误The provided cloud project number does not own the given recaptcha key表示与键不匹配。当OP更新client-side键时,它开始工作。
https://stackoverflow.com/questions/70241961
复制相似问题