Cakepdf won't work in browser

In browser the pdf files won’t open. If I open them in local file system there are no problems.
Idea?
Thanks, Marc

Check your files mime type.

File results
The MIME type for your file is: application/pdf

In Firefox and Safari it works fine. Only Chrome won’t open the pdf document.

I use the friendsofcake/cakepdf plugin with dompdf on cake 3.3

I hope you know that you cannot force a pdf file to open in a browser.
It depends on a local setting and is a security issue you cannot bypass.
For example, my Safari browser is configured to open PDFs while my other browsers are configured to download them and sites cannot override this behaviour.

Yeap, that’s not the problem.

The document can be open in safari, firefox and win explorer. Only chrome won’t work.