Recaptcha invalid-request-cookie

Lin*_*vel 5 html javascript captcha google-api recaptcha

我想Recaptcha在我的页面中做.我正在检查一个演示localhost.但是,我invalid-request-cookie一直在检查时一直收到错误.我正在关注不带插件显示recaptcha验证没有插件的recaptcha.

这是我的代码

<html>
<body>
<form method="post" action="http://www.google.com/recaptcha/api/verify">
<script type="text/javascript"
 src="http://www.google.com/recaptcha/api/challenge?k=my_public_key">
 <!-- I used my public key -->
</script>
<noscript>
 <iframe src="http://www.google.com/recaptcha/api/noscript?k=my_public_key"
     height="300" width="500" frameborder="0"></iframe><br>
 <textarea name="recaptcha_challenge_field" rows="3" cols="40">
 </textarea>
 <input type="hidden" name="recaptcha_response_field"
     value="manual_challenge">
</noscript>
<input type="hidden" name="privatekey" value="my_private_key">
<!-- I used my private key -->
<input type="submit" value="Ok"/>
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

在谷歌,我看到了,invalid-request-cookie意味着The challenge parameter of the verify script was incorrect.但这似乎是正确的.是对还是还有其他错误?有人帮忙

小智 0

读完本文后,我意识到我们其中一个表单的作者正在使用我们也拥有的不同域的公钥。因此,请确保您使用正确的公钥。