jaeger-ui icon indicating copy to clipboard operation
jaeger-ui copied to clipboard

Cannot override fetch requests to add custom headers

Open yoave23 opened this issue 5 years ago • 1 comments

We're using Jaeger inside an IFRAME and have a need to attach some custom headers to all /api requests.

Requirement - what kind of business use case are you trying to solve?

Attach custom headers to all fetch requests to /api by overriding window.fetch (example of an override: https://stackoverflow.com/a/45889043).

Problem - what in Jaeger blocks you from solving the requirement?

Looks like window.fetch (or isomorphic-fetch) is being copied by raven-js and cannot be overriden later.

Proposal - what do you suggest to solve the problem or improve the existing situation?

Use window.fetch for HTTP requests

yoave23 avatar Dec 16 '19 10:12 yoave23

cc @rubenvp8510

jpkrohling avatar Dec 16 '19 12:12 jpkrohling