Skip to content

Commit c8b5042

Browse files
authored
ref(replay): Change default value of networkDetailAllowUrls (#6938)
... from an example placeholder to `window.location.origin`
1 parent c64b441 commit c8b5042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/javascript/common/session-replay/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Any URL matching the given pattern(s) will then be captured with additional deta
4949

5050
```javascript
5151
new Replay({
52-
networkDetailAllowUrls: ["https://my-website.com/api"],
52+
networkDetailAllowUrls: [window.location.origin],
5353
});
5454
```
5555

@@ -65,7 +65,7 @@ If you want to capture additional headers, you'll have to configure them with th
6565

6666
```javascript
6767
new Replay({
68-
networkDetailAllowUrls: ["https://my-website.com/api"],
68+
networkDetailAllowUrls: [window.location.origin],
6969
networkRequestHeaders: ["Cache-Control"],
7070
networkResponseHeaders: ["Referrer-Policy"],
7171
});

0 commit comments

Comments
 (0)