# what changed
- adds documentation for headers passed into `localBrowser.connect()`
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds documentation for passing authentication headers to
`localBrowser.connect()` (TypeScript and Python) and
`ConnectLocalBrowser` (Go).
- Shows how to pass headers without putting credentials in the
connection URL.
- Documents that headers are sent with HTTP discovery and the WebSocket
connection, only forwarded to the same host and port, and never passed
to the extension.
- Promotes the "Connecting over CDP" heading so the extension CDP URL
anchor link resolves correctly.
<sup>Written for commit 0a68a53d578a3ff98e14695d65cb897c134c7774.
Summary will update on new commits.</sup>
<a
href="https://cubic.dev/pr/browserbase/stagehand/pull/3266?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/browserbase/stagehand/3266?returnTo=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand%2Fpull%2F3266&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->