Only call `setRequestHeader` before the request is made. _Originally posted by @rhcarvalho in https://github.com/getsentry/sentry-javascript/pull/2500#discussion_r394416938_
Only call
setRequestHeaderbefore the request is made.Originally posted by @rhcarvalho in #2500 (comment)