File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ rrweb.record({
44
44
initiatorTypes: [' fetch' , ' xmlhttprequest' ],
45
45
// mask/block recording event for request
46
46
transformRequestFn : (request ) => {
47
- if (request .url .contains (' rrweb-collector-api.com' )) return ; // skip request
47
+ // request.name is url
48
+ if (request .name .contains (' rrweb-collector-api.com' )) return ; // skip request
48
49
delete request .requestHeaders [' Authorization' ]; // remove sensetive data
49
50
request .responseBody = maskTextFn (request .responseBody );
50
51
return request;
@@ -82,10 +83,10 @@ const replayer = new rrweb.Replayer(events, {
82
83
getReplayNetworkPlugin ({
83
84
onNetworkData : ({ requests }) => {
84
85
for (const request of requests) {
85
- const url = request .url ;
86
+ const name = request .name ; // url
86
87
const method = request .method ;
87
88
const status = request .status ;
88
- console .log (` ${ method} ${ url } ${ status} ` );
89
+ console .log (` ${ method} ${ name } ${ status} ` );
89
90
}
90
91
},
91
92
}),
You can’t perform that action at this time.
0 commit comments