admin管理员组文章数量:1310480
I have implemented google-recapthca in angular 5 and it working well for all browers but in safari i got following error:
the source list for content security policy directive 'script-src' contains an invalid source: "strict-dynamic". It will be ignored.
my safari version is : 12.0
my html code
<div class="g-recaptcha" id="gAuth" data-sitekey="your_site_key_here"></div>
I have implemented google-recapthca in angular 5 and it working well for all browers but in safari i got following error:
the source list for content security policy directive 'script-src' contains an invalid source: "strict-dynamic". It will be ignored.
my safari version is : 12.0
my html code
<div class="g-recaptcha" id="gAuth" data-sitekey="your_site_key_here"></div>
Share
Improve this question
edited Mar 30, 2021 at 9:43
Manoj Rana
asked Dec 14, 2018 at 5:24
Manoj RanaManoj Rana
3,4602 gold badges26 silver badges36 bronze badges
3 Answers
Reset to default 1Do you have Adblock on? I've seen the error before and it seems like AdBlock can cause this error.
Optionally you can check this thread out: https://github./google/google-api-javascript-client/issues/397
Seems like the issue can be caused by multiple things.
I can confirm that issue. I'm on Safari 13.1 on MacOs 10.15.4. No addblockers installed. Is Recaptcha even using this client? It does not figure in the listing of the README.
Even on the Google Recaptcha demo page, the error is present. Google Recaptcha demo
But let me make you aware this error doesn't break captcha from working. The captcha works as usual on Safari.
If you are using Adblock try pausing and restarting (yup, standard old process). Worked for me when Youtube was pletely broken.
本文标签:
版权声明:本文标题:javascript - the source list for content security policy directive 'script-src' contains an invalid source in sa 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741824590a2399568.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论