Sentry.init({
dsn: this.sentryKey,
release: this.releaseTag,
environment: process.env.NODE_ENV,
integrations: [
new BrowserTracing({
tracingOrigins: [],
routingInstrumentation: Sentry.reactRouterV5Instrumentation(
HISTORY_SINGLETON,
getRouteConfigsForSentryPerf([
...Object.values(FLAT_ROUTES),
...Object.values(DeprecatedROUTES),
]),
matchPath,
),
shouldCreateSpanForRequest: (url) => {
const gqlUrl = HttpRequestUtil.getGqlUrl();
const isGqlUrl = url === gqlUrl;
return !isGqlUrl;
},
_metricOptions: {
_reportAllChanges: true,
},
heartbeatInterval: 10000,
}),
new Sentry.Integrations.Breadcrumbs({console: false}),
],
tracesSampleRate: 1,
transportOptions: {
headers: {'Origin': 'test.com'},
}});
Is there a way to change or hide the origin header? My goal is to hide the origin header as it contains sensitive data.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
bundle.tracing.min.js) in your SDK setup.@sentry/react
SDK Version
7.22.0
Framework Version
React 17.0.2
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
http://localhost:3000)Is there a way to change or hide the origin header? My goal is to hide the origin header as it contains sensitive data.
Expected Result
Origin header is changed to
test.comActual Result
Origin header is not changed