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:
Use origins when protocol and port matter:
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.
approval: "ask" and an onConfirm callback.