问题
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