Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the source list for content security policy directive 'script-src' contains an invalid source in safari angular 5

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>
like image 287
Manoj Rana Avatar asked Dec 14 '18 05:12

Manoj Rana


1 Answers

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.com/google/google-api-javascript-client/issues/397

Seems like the issue can be caused by multiple things.

like image 62
crellee Avatar answered Nov 01 '22 20:11

crellee