I have developed a website, I want to add google adsense to the site. I have created an adsense account and added the code snippet to my website. but the Google's addsbygoogle.js loads and writes some inline scripts and styles that the browser refuses to load because it violates my CSP rules.
I have tried adding 'strict-dynamic' with a nonce to all of my scripts in the page, still it refuses to load these scripts.
It all works fine if I add "unsalfe-inline" but is there a more secure way to do this.
thanks