Giter Club home page Giter Club logo

Comments (2)

maltoe avatar maltoe commented on July 17, 2024

Hey @Zelzahn,

the error sure looks like Chromium isn't loading your asset due to the failed TLS peer verification. I would also expect --ignore-certificate-errors in :chrome_args to fix this, but I've never tried this and can't say why it doesn't work. Perhaps it conflicts with one of our default command line args, but not sure.

Besides debugging --ignore-certificate-errors and making it work with ChromicPDF), here are a few options to solve your issue differently:

  1. Make Chromium accept your self-signed certificate. However, Chromium uses its own certificate store instead of your OS's, and the recommended method to add self-signed certificates is quite cumbersome, so this path may turn out expensive given you don't gain much besides a local TLS connection.
  2. Don't use a local TLS connection. For instance, you can give chromium its own (non-https) Phoenix endpoint to connect to. You should be able to reuse your existing routers + views for this (i.e. share them with your public https endpoint). Make sure to bind to 127.0.0.1 only if this is a public host.
  3. Serve the assets differently, e.g. use file:/// paths or embed them as data-uris.

Personally, I'd explore option 2 first. Hope this helps.

malte

from chromic_pdf.

Zelzahn avatar Zelzahn commented on July 17, 2024

Thanks for the swift reply! I'll try the second option, hopefully it'll then work 😄

from chromic_pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.