jaeger-ui
jaeger-ui copied to clipboard
Cannot override fetch requests to add custom headers
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
cc @rubenvp8510