mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
937fffaedc
**What kind of change does this PR introduce?** I have browsers pool in some cloud. I want that only users with access will be able to connect to them. So they must provide token through headers. But puppeteer does not allow to send headers when connected to browser by ws connection. So I added this feature. Closes #7218
20 lines
281 B
Markdown
20 lines
281 B
Markdown
---
|
|
sidebar_label: ConnectOptions.headers
|
|
---
|
|
|
|
# ConnectOptions.headers property
|
|
|
|
Headers to use for the web socket connection.
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
interface ConnectOptions {
|
|
headers?: Record<string, string>;
|
|
}
|
|
```
|
|
|
|
## Remarks
|
|
|
|
Only works in the Node.js environment.
|