Skip to main content

Network logs

See an example config here.

Available Options

OptionDescriptionDefaultType
networkLogs.allowedRequestHeadersAdditional request headers to capture in network logs. Default headers are: ['content-type', 'content-length', 'accept', 'accept-language'][]Array.<string>
networkLogs.allowedResponseHeadersAdditional response headers to capture in network logs. Default headers are: ['cache-control', 'content-length', 'content-type', 'content-language'][]Array.<string>
networkLogs.captureRequestBodyCallback function to process/modify request bodies before capturing them. If not provided, the request body will not be captured.undefinedfunction
networkLogs.captureResponseBodyCallback function to process/modify response bodies before capturing them. If not provided, the response body will not be captured.undefinedfunction
networkLogs.excludeRequestUrlsA 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)>