Skip to content

Replay networkDetailAllowUrls is hard to use when you just want to block a couple known url patterns #8435

Closed
@ryan953

Description

@ryan953

Example config:
https://github.com/getsentry/getsentry/pull/11002

          networkDetailAllowUrls: [
            // Disallow:
            // `/api/0/customers/*`
            // `/api/0/invoices/*`
            // `/api/0/projects/<org>/<proj>/replays/<id>/replay-segments/`
            // Allow: all others
            /\/api\/0\/(?!(projects|customers|invoices)\/).*/,
            /\/api\/0\/projects\/[^/]*\/[^/]*\/(?!(replays\/))/,
            /\/api\/0\/projects\/[^/]*\/[^/]*\/replays\/[^/]*\/?!(recording-segments\/)/,
          ],

this should be easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: replayIssues related to the Sentry Replay SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions