Skip to content

Unable to see full headers nor request/response payloads in Sentry Session Replay, despite whitelistsΒ #17522

@alexandru-travels

Description

@alexandru-travels

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

I'm using "@sentry/react": "7.108.0" and have specified the following configuration

Sentry.replayIntegration({
        maskAllInputs: false,
        maskAllText: false,
        networkDetailAllowUrls: [/.*/],
        networkCaptureBodies: true,
        networkRequestHeaders: ['*'], // Capture all request headers
        networkResponseHeaders: ['*'], // Capture all response headers
      })

where, I'm expecting to log every request, header, payload, response etc.

But when viewing the replay in Sentry, i see

You can capture additional headers by adding them to the networkRequestHeaders and networkResponseHeaders lists in your SDK config.

instead of the expected full headers of the request, full request body, and full response body.

Is it just not supported to log the traffic, in its entirety, regardless of what domain my backend APIs might be on?

And, I do understand the security implications and what have you, of essentially configuring this as a keylogger, but I'm not really understanding what I'm doing wrong, unless this setup is completely unsupported?

Appreciate any help.

How are you getting stuck?

see above

Where in the product are you?

Replays

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions