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

Manoj Rana picture Manoj Rana · Dec 14, 2018 · Viewed 16.3k times · Source

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>

Answer

crellee picture crellee · Dec 19, 2018

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.