Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get the following when trying to view a document, I'm using a public filesystem as well.
"Refused to display document because display forbidden by X-Frame-Options."
Comments
Comment #1
jmarkel CreditAttribution: jmarkel commentedI've never seen this - Could you please provide me with some additional info? Such as which OS/browser/browser level, if it's repeatable, file being displayed, etc.
Thanks
Comment #2
emcniece CreditAttribution: emcniece commentedJust dropping by... working on this right now for an unrelated module, Lightbox2. This may be of help to you: http://stackoverflow.com/questions/6666423/overcoming-display-forbidden-...
I tried adding the header thing to my php, but didn't have any luck.
Comment #3
jmarkel CreditAttribution: jmarkel commentedNever been able to reproduce this myself, and with no input from the original bug reporter, I'm marking this closed.
Comment #4
AdrianB CreditAttribution: AdrianB commentedI saw this sometimes when embedding Google Docs manually (not with this module nor with Drupal at all). I think it was an issue with Google, because it would go away without me doing anything. (My theory is that it had something to do with Googles bad habit of forcing visitors to log in with Google Account if there was a cookie saying the visitor had been logged in before.)
Comment #5
Kazanir CreditAttribution: Kazanir commentedI am having this issue as well, and I would lay money that it has something to do with a combination of Chrome and the files being served from Amazon's off-domain CDN. I can't even reproduce it myself, but we occasionally experience it and I have a couple users for whom clearing the cache (the usual fix) does not work.
This probably isn't even an issue with this module but I would appreciate any assistance in trying to track down a fix since I'm sure it will crop up for others at some point in the future.
Comment #6
Kazanir CreditAttribution: Kazanir commentedUpdate just a few minutes later: It is in fact the problem that is alluded to in #4 -- if a user is in a Google Account limbo state, where they are logged in but it wants a password re-authentication, the Google Doc Viewer will not display. Bizarre and funky but probably not something this module can solve.
Comment #7
gisleNo progress in eight years. Closing as outdated based upon #6.