Forum Moderators: martinibuster

Message Too Old, No Replies

Content Security Policy and Adsense

         

yaashul

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

10+ Year Member Top Contributors Of The Month



Hi,

Do you use any content security policy for serving adsense ads. Especially ads served on ajax (xHR).
Any CORS policy?

JorgeV

1:08 pm on Oct 2, 2019 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



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.