Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf download issues with firefox #145

Open
landryb opened this issue Dec 10, 2021 · 0 comments
Open

pdf download issues with firefox #145

landryb opened this issue Dec 10, 2021 · 0 comments

Comments

@landryb
Copy link
Member

landryb commented Dec 10, 2021

not sure if related to #143 or georchestra/cadastrapp#615 but with cadastrapp 1.9.3 (from https://github.com/landryb/cadastrapp/commits/1.9.3-craig) firefox 95 and ms2-cadastrapp we're having BP download issues, the response headers show (be it with mfapp or ms2-cadastrapp)

Content-Disposition | attachment; filename=BP1639138287532.pdf
Content-Type | application/pdf

is ms2-cadastrapp firefox displays 'a partir de :blob:' (and the correct mimetype/content-type) but doesnt propose direct opening of the pdf within firefox while in mfapp it works, eg firefox displays 'a partir de : https://ids.craig.fr' and proposes to open the pdf within firefox (eg with pdf.js)

from what i can see of the other request headers (not response), from mfapp firefox sends:

Sec-Fetch-Dest: iframe
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin

while from ms2-cadastrapp firefox sends:

Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

cf https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#fetch_metadata_request_headers

i dunno if those request headers have something to do with those pdf download issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant