I’m going to try this again:
I am having the same issue with PDF Viewer not showing the PDF files, however clearing the browser cache didn’t help. I’ve tried in Chrome, Firefox and Opera. I have:
PDF Viewer 1.2.1
Ubuntu Server 16.04,
I have the latest most updated versions of the three browsers. Here is an image of the issue. Having not used PDF Viewer before I’m not sure how it “should” display the PDF file, but what it does is give a blank screen and the bread-crums are dead links. Below, the image I’ve included, I’ve pasted the actual errors that I pulled from Chrome in the Inspector Console, which I’m trying to research. I think it might be a setting in Apache or SSL but, I’m not sure yet. Does anyone have know this or have any insights or advice? Thanks very much.
Clearing the browser cache didn’t work, because you are facing a different problem
Should be a new topic.
This is the relevant message for you:
Refused to display ‘https ://000.000.000.000/index.php/apps/files_pdfviewer…Boxes…PDF’ in a frame because it set multiple ‘X-Frame-Options’ headers with conflicting values (‘ALLOW, SAMEORIGIN’). Falling back to ‘deny’.
Not an issue with the PDF viewer, but with your X-Frame-Options which you probably defined twice and with different values.
Okay - might open a new issue, as it is driving me nuts.
In Firefox, there is no problem.
With Chrome and Chromebooks, I can either have mail working correctly or I can open PDF’s. But not both.
If I remove the Header set X-Frame-Options "ALLOW, SAMEORIGIN" from the htaccess file, I still get a header X-Frame-Options: SAMEORIGIN and I cannot open PDFs, but I can open mail.
II get the PDF.js v2.0.673 (build: 31012570) Message: Unexpected server response (503) while retrieving PDF error with PDF’s.
If I add header set X-Frame-Options "ALLOW, SAMEORIGIN" to the htaccess file, or add Header always append X-Frame-Options "ALLOW, SAMEORIGIN" cannot open mail, but I can open PDFs. With mail, I get Refused to display 'https://server/index.php/apps/mail/api/accounts/4/folders/SU5CT1g=/messages/16554/html' in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, ALLOW, SAMEORIGIN'). Falling back to 'deny'.
I cannot see where the SAMEORIGIN header is being set.
Actually - no longer sure what is happening in chrome, but have to go now.
Any help would be appreciated. I cannot work this out.
Well, that puts me back to where I started from. Removed from both .htaccess and the apache config file, and the Web Developer thingie give me:
Still cannot open pdf’s but can open mail. The very problem I was trying to fix. I don’t know where that is being set, either. Default is, AFAIK, deny, and I cannot find any setting in my .htaccess or apache config files.