Skip to content

How to set cookies using chrome-headless-render-pdf? #60

@ryanzidago

Description

@ryanzidago

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions