最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - the source list for content security policy directive 'script-src' contains an invalid source in sa

programmeradmin1浏览0评论

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
Add a ment  | 

3 Answers 3

Reset to default 1

Do 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论