Welcome to WebmasterWorld Guest from 3.227.249.234

Forum Moderators: martinibuster

Content Security Policy and Adsense

     
2:10 am on Oct 2, 2019 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 31, 2009
posts:181
votes: 4


Hi,

Do you use any content security policy for serving adsense ads. Especially ads served on ajax (xHR).
Any CORS policy?
1:08 pm on Oct 2, 2019 (gmt 0)

Junior Member

Top Contributors Of The Month

joined:Aug 30, 2019
posts:96
votes: 17


Hello-

From my experience, anything you would set in CSP will prevent Adsense to work.

It's been a while that I am looking for "something", which would prevent an external script to modify the DOM of the page (beside inserting an iframe), and I didn't (yet) come to a solution. My only problem with Adsense, is that, since some times, they are altering the style of "all" parent containers, which is messing my page layout. So, I tried CSP settings, without success.