I want to generate a PDF from a page where a user is authenticated. Therefore, I'd like to pass the session cookie when using chrome-headless-render-pdf.
However, using the library, I haven't see anything regarding setting cookies. Maybe through the --chrome-options flag?
Hi,
I want to generate a PDF from a page where a user is authenticated. Therefore, I'd like to pass the session cookie when using chrome-headless-render-pdf.
However, using the library, I haven't see anything regarding setting cookies. Maybe through the
--chrome-options
flag?Which chrome options though? I've found this list: https://peter.sh/experiments/chromium-command-line-switches/ but there does not seem to have anything related to setting cookies.