Javascript errors from Google Adsense

后端 未结 9 2280
无人共我
无人共我 2020-11-30 22:44

On several of my adsense running sites, I have been getting the following errors:

Unable to post message to [http://]googleads.g.doubleclick.n

9条回答
  •  生来不讨喜
    2020-11-30 23:11

    Google's trying to exploit a browser quirk whereby some browsers ignore the same-origin policy for windows with about:blank as the URL, allowing that window to submit XMLHttpRequest or, in this case, postMessage requests to any site.

    As far as I know, browsers have recently been disabling this behaviour. You must have one such patched browser.

    Hopefully, this broken functionality doesn't affect your ability to earn money from the ads.

    It's annoying for your site to generate Javascript errors through no fault of your own, but it is a possibility you must accept when you run someone else's Javascript on your page.

提交回复
热议问题