Javascript reCapcha中的阻塞帧

Javascript reCapcha中的阻塞帧,javascript,recaptcha,Javascript,Recaptcha,我在本地测试服务器上使用reCapcha。一切正常,但我有错误: Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "http://127.0.0.1:8000". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http

我在本地测试服务器上使用reCapcha。一切正常,但我有错误:

Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "http://127.0.0.1:8000".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

在html中:

...
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
...
<div class="g-recaptcha" data-sitekey="..."></div>
。。。
...
如何修复这些错误


谢谢

如果您使用的是iframe,则此部分:

阻止来源为[url here]的帧访问来源为[other url here]的帧

意味着它不起作用了。帧之间不能相互干扰,否则人们就可以从另一帧中的一帧窃取您的数据。有关更多详细信息,请查看


不过,您可以通过消除这种混合协议错误来简化自己的工作:您可以通过http而不是https访问Google文件,因此尝试这样做可以消除一半的麻烦。(您也可以使用如下url:
//www.google.com/recaptcha/api.js
而不是指定是使用http还是https。)

您是否通过ajax提交和呈现表单?我也有这个错误(
...
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
...
<div class="g-recaptcha" data-sitekey="..."></div>