Adsense shows an 'X-Frame-Options' to 'SAMEORIGIN' error

 ̄綄美尐妖づ 提交于 2020-01-01 15:26:15

问题


Recently I noticed that all my websites give an error in Chrome console (removing adsense the error goes away):

Refused to display https://googleads.g.doubleclick.net/pagead/drt/si?p=******&dpt=1 in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Nothing was changed, I don't use iframe, Ads is still visible. But I don't like this error, I read about youtube and maps error, but didn't find any about adsense.

What can I do to fix it? Page of example: http://www.incinqueterre.com/en/trails-all


回答1:


In my case the Google Publisher Toolbar was to blame - turning it off fixed the error.




回答2:


I just started getting this error recently as well when using chrome.

From my searching around the interwebs, I found hte following information. It appears to be a bug in the webkit engine (chrome, safari, et al):

Invalid 'X-Frame-Options' header from google's Doubleclick response

https://bugs.webkit.org/show_bug.cgi?id=110857

Once Chrome (and maybe others) upgrade their version of webkit it will go away.



来源:https://stackoverflow.com/questions/21307433/adsense-shows-an-x-frame-options-to-sameorigin-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!