@sentry/browser log POST payload

I’m trying to add the payload data to the breadcrumbs sent to Sentry.io.

It just looks like this. I cannot see what was actually sent :frowning:

enter image description here

I found out how to add the response.

const sentryConfig: BrowserOptions = {
  beforeBreadcrumb: (breadcrumb, hint) => {
    if (breadcrumb.category === 'xhr') {
      // hint.xhr is a whole XHR object that you can use to modify breadcrumb
      breadcrumb.data = (hint.xhr as XMLHttpRequest).response;
    }

    return breadcrumb;
  }
};

But I cannot seem to find a way to add the payload. XMLHttpRequest doesn’t have this info.