Network logs
See an example config here.
Available Options
| Option | Description | Default | Type |
|---|---|---|---|
networkLogs.allowedRequestHeaders | Additional request headers to capture in network logs. Default headers are: ['content-type', 'content-length', 'accept', 'accept-language'] | [] | Array.<string> |
networkLogs.allowedResponseHeaders | Additional response headers to capture in network logs. Default headers are: ['cache-control', 'content-length', 'content-type', 'content-language'] | [] | Array.<string> |
networkLogs.captureRequestBody | Callback function to process/modify request bodies before capturing them. If not provided, the request body will not be captured. | undefined | function |
networkLogs.captureResponseBody | Callback function to process/modify response bodies before capturing them. If not provided, the response body will not be captured. | undefined | function |
networkLogs.excludeRequestUrls | A list of request URL patterns to exclude from network capture. String patterns must match the full URL, including query parameters and fragments. Use RegExp for flexible or partial matching. Example: ['https://example.com', new RegExp('https://test\\.com\\/.*'), /.*\\.domain\\.com/] | [] | Array.<(string|RegExp)> |