You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**alert**: If you are uploading events to a server, you should always use `ignoreRequestFn` to block recording events for these requests or else you will cause a nasty loop.
60
+
**alert**: If you are uploading events to a server, you should always use `transformRequestFn` to transform/block recording events for these requests or else you will cause a nasty loop.
| initiatorTypes |`['fetch','xmlhttprequest','img',...]`| Default value contains names of all [initiator types](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType). You can override it by setting the types you need. |
67
-
|ignoreRequestFn|`() => false`|Block recording events for specific requests|
68
-
| recordHeaders |`false`| Record the request & response headers for `fetch` and `xmlhttprequest` requests |
69
-
| recordBody |`false`| Record the request & response bodies for `fetch` and `xmlhttprequest` requests |
70
-
| recordInitialRequests |`false`| Record an event for all requests prior to rrweb.record() being called |
| initiatorTypes |`['fetch','xmlhttprequest','img',...]`| Default value contains names of all [initiator types](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType). You can override it by setting the types you need. |
67
+
|transformRequestFn|`(request) => request`|Transform recording event for request to block (skip) or mask/transofrm request (e.g. to hide sensetive data) |
68
+
| recordHeaders |`false`| Record the request & response headers for `fetch` and `xmlhttprequest` requests|
69
+
| recordBody |`false`| Record the request & response bodies for `fetch` and `xmlhttprequest` requests|
70
+
| recordInitialRequests |`false`| Record an event for all requests prior to rrweb.record() being called|
0 commit comments