1

Sometime in the last few days, Chrome and Edge started displaying PDFs from my website with a dark gray background and a light gray dot in the center. The PDFs display fine in Firefox. I have tried this on 4 PCs and one outside our internal network.

Gray Dot

I have not made any changes to the web server configuration. (Apache, CentOS)

There are no errors in the apache error log related to the PDF files I am serving.

5
  • care to share a link to one of these PDF? Are the files accessible? Is only the grey square with a grey dot displayed?
    – wazoox
    Feb 5, 2019 at 15:47
  • It doesn't matter the PDF. I tried downloading cvm.qc.ca/nspatz/Powerpoint/Presperf.pdf and putting it on my site and it still just renders with the gray dot.
    – Haabda
    Feb 5, 2019 at 16:42
  • I understand but could you give a link to this PDF on your site? To see how it behaves for me.
    – wazoox
    Feb 5, 2019 at 17:30
  • What happen if you download the PDF locally to open it with Acrobat or something else?
    – wazoox
    Feb 5, 2019 at 17:31
  • They display just fine if you download them.
    – Haabda
    Feb 5, 2019 at 17:38

1 Answer 1

1

It turned out that Chrome and Edge don't want to load PDFs if the Content Security Policy has object-src 'none' set. I had to relax the CSP a bit by setting object-src 'self'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .