Title: Define allowlist of URLs to capture replay request bodies/headers for · Issue #7830 · getsentry/sentry-javascript · GitHub
Open Graph Title: Define allowlist of URLs to capture replay request bodies/headers for · Issue #7830 · getsentry/sentry-javascript
X Title: Define allowlist of URLs to capture replay request bodies/headers for · Issue #7830 · getsentry/sentry-javascript
Description: For replay network breadcrumbs, we want users to define an allowlist of URLs for which to capture bodies/headers. The idea is that we do not blindly capture anything (which could contain PII), but to have users opt in for which URLs they...
Open Graph Description: For replay network breadcrumbs, we want users to define an allowlist of URLs for which to capture bodies/headers. The idea is that we do not blindly capture anything (which could contain PII), but ...
X Description: For replay network breadcrumbs, we want users to define an allowlist of URLs for which to capture bodies/headers. The idea is that we do not blindly capture anything (which could contain PII), but ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7830
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Define allowlist of URLs to capture replay request bodies/headers for","articleBody":"For replay network breadcrumbs, we want users to define an allowlist of URLs for which to capture bodies/headers.\r\n\r\nThe idea is that we do not blindly capture anything (which could contain PII), but to have users opt in for which URLs they want to capture bodies/headers.\r\n\r\n## Proposed API\r\n\r\n```js\r\nnew Replay({\r\n network: {\r\n urls: ['https://my-api.com', /https:\\/\\/custom-api\\.com/],\r\n },\r\n});\r\n```\r\n\r\nurls provided as strings will be contains-matched, if you need exact matches you can use a regex (similar to tracePropagationTargets).\r\n\r\n## UI changes\r\n\r\nSince this would mean that bodies/headers are opt in, it would be important to educate users about the possibility to do so.\r\nIn addition to adding this to the docs generally, we should also handle this in the replay UI.\r\n\r\nOne idea is to add a warning flag to the request/response `_meta` that indicates that this was ignored due to `urls` nor matching. Then in the UI, when a user clicks on a request, we could show a message like:\r\n\r\n> The body & headers for this request have not been captured because `network.urls` does not match it. If you want to start capturing this request, modify your SDK config and add `network: { urls: ['https://url-domain.com'] } }` in order to capture bodies & headers for all API requests to this domain.\r\n\r\n\r\n","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-04-12T15:13:29Z","url":"https://github.com/getsentry/sentry-javascript/issues/7830"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7942e09f-f2ee-1dd8-8659-4c3888f97d4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB08:36E50:5F095A:7EF227:6B04C446 |
| html-safe-nonce | 0ceec3195e5c896fb80a07e6b4d16628e03f912c807fe806397a5b313d403c5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjA4OjM2RTUwOjVGMDk1QTo3RUYyMjc6NkIwNEM0NDYiLCJ2aXNpdG9yX2lkIjoiNjc5NzQ0ODc0NDYzNzA4ODgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29c1f3e75e3af6ccd8cf4bea4490917b118da15a945e410777cef54a945744d7 |
| hovercard-subject-tag | issue:1664762123 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/7830/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0909742260d4a6c02e8522060f334cdbed0e1f70d991685f6fd0a7a7c8ce1bf/getsentry/sentry-javascript/issues/7830 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0909742260d4a6c02e8522060f334cdbed0e1f70d991685f6fd0a7a7c8ce1bf/getsentry/sentry-javascript/issues/7830 |
| og:image:alt | For replay network breadcrumbs, we want users to define an allowlist of URLs for which to capture bodies/headers. The idea is that we do not blindly capture anything (which could contain PII), but ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width