NPM验证码-在更高的环境中不起作用

时间:2019-04-04 07:06:30

标签: node.js angular npm angular6 recaptcha

我在我的角度组件中使用了NPM验证码。在我的本地环境中,它工作正常。我已经在开发环境中部署了与相关站点密钥配置相同的文件,但是它引发了以下错误:

  

错误:   main.851e06a6b02d9e602d73.bundle.js:1拒绝加载脚本“ https://www.google.com/recaptcha/api.js?render=explicit&onload=ng2recaptchaloaded”,因为它违反了以下内容安全策略指令:“ script-src'self''unsafe-eval''unsafe-inline'*。 msecnd.net * .visualstudio.com * .googleapis.com js.stripe.com use.fontawesome.com * .google-analytics.com www.googletagmanager.com”。请注意,未明确设置“ script-src-elem”,因此将“ script-src”用作备用。

0 个答案:

没有答案
相关问题