Skip to main content
Browser policy lets you put a managed browser inside an explicit operating boundary. Use it to describe where a browser may navigate, which auth or redirect excursions are expected, what private-network access is allowed, and how downloads, uploads, and destructive actions should be handled.

Where policy is accepted

BrowserNavigationPolicy

Modes

mode, authDomains, redirectDomains, and privateAccess require an explicit allowed boundary through allowedDomains or allowedOrigins.

Domains and origins

Use domains for most browser-agent work:
Domain entries: Use origins when protocol and port matter:
Origin entries:

Auth and redirect domains

Auth and redirect domains are not general allow-lists. They model temporary excursions from an allowed boundary.
When content access remains on an auth domain, policy can return policy_auth_excursion_return_required to nudge the workflow back to the trusted boundary.

Private access

Private-network destinations include localhost, private IP ranges, link-local addresses, and known metadata services.
Private access requires allowedDomains or allowedOrigins. Metadata endpoints remain protected by the address-space classifier unless explicitly allowed by policy and runtime controls.

Downloads, uploads, and approvals

BrowserDownloadPolicy: BrowserUploadPolicy: BrowserApprovalRules:

Policy tips

Policy tips are user-facing hints returned by policy-aware surfaces. A tip may include observed domains and a suggested policy patch.

Validation rules

Policy normalization rejects invalid shapes early:

Policy is not a prompt

Policy is enforced by Webcompute surfaces that accept policy. It is not a substitute for:
  • App-level authorization.
  • Human approval for irreversible business actions.
  • Careful secret scoping.
  • Proxy credential handling.
  • Reviewing generated browser code before using it in higher-risk workflows.
For approval-sensitive agent workflows, combine browser policy with approval: "ask" and an onConfirm callback.