Skip to content

Additional CLI parameters for setting cookies: URL, httpOnly #261

@ms1111

Description

@ms1111

The agent-browser cookies set command only allows setting cookies for the currently loaded URL.

It would be nice to be able to set a cookie for a URL before opening the page, for example to set a session cookie for authentication. The daemon side seems like it would support this, just not the CLI.

I was running into this:

  1. Open app URL
  2. App redirects to authentication site
  3. It's a different domain -> can't use agent-browser cookies set to set a session cookie on the app URL

Workaround:

  1. Open invalid URL on the app domain
  2. Set session cookie
  3. Open real app URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions