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

"insecure download" warning when downloading from pdf generator #236

Open
yehudaclinton opened this issue Apr 7, 2024 · 2 comments
Open

Comments

@yehudaclinton
Copy link

yehudaclinton commented Apr 7, 2024

I'm getting "insecure download" warning when downloading with chrome lately. I have proper TLS and it doesn't happen with prawn.

  grover = Grover.new(html, format: Params.paper_size)

  pdf = grover.to_pdf

  return send_data pdf, filename: 'download.pdf', type: 'application/pdf'
@abrom
Copy link
Contributor

abrom commented Apr 7, 2024

What have you tried to do to debug this? I can't replicate it and you haven't provided much to go on.

Is it all content or just some? Have you tried setting the content to something specific? html = 'works?' ?? Is it all PDFs? Have you tried returning a static PDF? What versions of things (grover/puppeteer/node) are you running?

@yehudaclinton
Copy link
Author

What have you tried to do to debug this? I can't replicate it and you haven't provided much to go on.

Is it all content or just some? Have you tried setting the content to something specific? html = 'works?' ?? Is it all PDFs? Have you tried returning a static PDF? What versions of things (grover/puppeteer/node) are you running?

Grover version 1.1.5
Its true that it is difficult for me to be certain that Grover is the issue but why else are some of the downloads giving that issue and not others. Either way its a new annoying feature from chrome that is bothering out clients for no good reason.

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

2 participants