Chrome has “Failed to load PDF document” error message on inline PDFs

前端 未结 5 844
无人共我
无人共我 2020-12-07 02:15

I have a problem with reading pdf file in Chrome by using PHP.

The following code is how I do in PHP

$path = \"actually file path\";
header(\"Pragma:         


        
5条回答
  •  生来不讨喜
    2020-12-07 02:37

    For me adding the following header fixed this annoying Chrome bug (?):

        header('HTTP/1.1 200 OK');
    

提交回复
热议问题