Confused about remotely loaded javascript content

Okay so I noted that the CSP log was showing the Google ads script was being blocked so I added

https://pagead2.googlesyndication.com

to the CSP script src list and then my Google Adsense ads started appearing (kind of surprised you still have to do that even with the Adsense plugin installed). The thing I noted though is that with my House Ads set to 100% (so that my script is the only one being called) I get ZERO notification in CSP that there is an issue. So that leaves me right back to being confused. The House Ad code is in the HTML (encoded) and appears as above in the browser inspection view.

Is there something blocking the output but not triggering a CSP warning?

The output uses document.write to create the ad space. I am guessing that is the culprit. The output looks like this:

Lol… if I put the script output in here in text it was generating just fine. Doh…

I did find this post with a similar issue, but this person figured it out on their own and is clearly better with javascript than I.

As with him though I am willing to pay someone for help with this.

Thanks,
Jim

1 Like