Skip to content

Conversation

@ctate
Copy link
Collaborator

@ctate ctate commented Jan 25, 2026

Extends the cookies set command to support setting cookies with additional parameters before loading a page, solving authentication workflows where cookies need to be set for different domains.

Key changes:

  • Added CLI flags: --url, --domain, --path, --httpOnly, --secure, --sameSite, --expires
  • Added comprehensive test coverage for all new flags and combinations
  • Updated help documentation with usage examples
  • No daemon changes needed - it already supported these parameters

Example usage:

agent-browser cookies set session_id "abc123" --url https://app.example.com --httpOnly --secure

This allows setting cookies for a URL before opening the page, eliminating the need for workarounds in cross-domain authentication scenarios.

Fixes #261

…ires

Extends the `cookies set` command to support setting cookies with additional parameters before loading a page, solving authentication workflows where cookies need to be set for different domains.

**Key changes:**
- Added CLI flags: `--url`, `--domain`, `--path`, `--httpOnly`, `--secure`, `--sameSite`, `--expires`
- Added comprehensive test coverage for all new flags and combinations
- Updated help documentation with usage examples
- No daemon changes needed - it already supported these parameters

**Example usage:**
```bash
agent-browser cookies set session_id "abc123" --url https://app.example.com --httpOnly --secure
```

This allows setting cookies for a URL before opening the page, eliminating the need for workarounds in cross-domain authentication scenarios.

Fixes #261
@vercel
Copy link
Contributor

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agent-browser Ready Ready Preview, Comment Jan 25, 2026 5:47pm

@ctate ctate merged commit ae09fdd into main Jan 25, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

Additional CLI parameters for setting cookies: URL, httpOnly

2 participants