Control whether or not LogRocket parses blobs in response bodies
Enable parsing of Blobs from XMLHTTPRequest response bodies
shouldParseXHRBlob
- Boolean
shouldParseXHRBlob
- Booleanoptional (default - false
)
false
)LogRocket will save XMLHTTPRequest bodies of responseType Blob
as [object Blob]
by default in the network request details. To have Blobs that encode JSON text decoded, enable this option.
If you want to enable this feature, add this option to your configuration:
LogRocket.init(YOUR_APP_ID, {
shouldParseXHRBlob: true,
});
The popular package
cross-fetch
provides an implementation offetch()
using XMLHTTPRequests. In order to avoid having all fetch response bodies recorded as Blobs, enable this option.