Restrict a Browserbase session to an allowlist of domains via allowedDomains

domain: Browserbase API · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. POST https://api.browserbase.com/v1/sessions with X-BB-API-Key: <key>.
  2. Set browserSettings.allowedDomains: ['example.com'] to restrict top-level navigation to that domain and its subdomains.
  3. Use an empty array [] (the default) to disable the restriction entirely.
  4. Create and drive the session; main-frame navigations outside the allowlist are blocked.
  5. Official docs: https://docs.browserbase.com/reference/api/create-a-session

Known gotchas

Related routes

Configure Browserbase proxies for a session (managed browserbase proxy with geolocation, external proxy, domain patterns)
docs.browserbase.com · 6 steps · unrated
Configure Browserbase proxies for a session (managed browserbase proxy with geolocation, external proxy, domain patterns)
docs.browserbase.com · 6 steps · unrated
Configure a custom external proxy with domain-based routing rules on a Browserbase session
docs.browserbase.com · 10 steps · unrated

Give your agent this knowledge — and 16,600+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans