Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/430.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 角度-g-recaptcha不工作_Javascript_Angularjs_Recaptcha - Fatal编程技术网

Javascript 角度-g-recaptcha不工作

Javascript 角度-g-recaptcha不工作,javascript,angularjs,recaptcha,Javascript,Angularjs,Recaptcha,我正在使用angular-g-recaptcha,但它在我的项目中不起作用,我会解释 我在google recaptcha中配置了我的密钥和域(localhost) 但我的recaptcha从未出现在屏幕上 我正在使用提供程序方法设置密钥和设置: angular .module('gitlocalApp', [ 'ui.router', 'ngResource', 'wo.grecaptcha' ]) .config(function ($stateProvider, $urlR

我正在使用angular-g-recaptcha,但它在我的项目中不起作用,我会解释

我在google recaptcha中配置了我的密钥和域(localhost)

但我的recaptcha从未出现在屏幕上

我正在使用提供程序方法设置密钥和设置:

angular
  .module('gitlocalApp', [
  'ui.router',
  'ngResource',
  'wo.grecaptcha'
])
.config(function ($stateProvider, $urlRouterProvider,$grecaptchaProvider) {

    $grecaptchaProvider.set({
    sitekey: '6LfchhoTAAAAAKdo9FfSOS90mER-PnDDmqpKPPTq',  
    theme: 'Light',                                       
    type: 'image',                                        
    size: 'NORMAL',
      ...
    });
});
我以这种方式使用指令:

<div>
    <div 
    grecaptcha="{sitekey: '===KEY===', theme: 'dark'}"

    data-ng-model="response" gre-info="info">
    Loading...
    </div>
    <div data-ng-bind="respone"> </div>
    </div>
</div>

加载。。。
来自的注释

请记住,验证码仅在从真实域使用时有效 并使用有效的重新验证码密钥,因此如果您 将其加载到浏览器中


这很奇怪,因为google文档默认情况下,所有键都在“localhost”(或“127.0.0.1”)上工作,所以您可以始终在本地机器上开发和测试我正在尝试angular no captcha,我可以在localhost中运行