You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong request headers when instrument the fetch with 2 parameters and they both have headers #10172
Hi @Kaciras again, thank you for the reproduction steps and for even finding the incorrect line of code. I tested this, both live in Chromium as well as in our integration test setup and could confirm that browsers indeed seem to prefer the init options over the fetch input option (i.e. the Request passed to the first argument of the fetch call). So you were right, our instrumentation forwarded the wrong headers. I pushed a fix in #10176 which will be included in the next release. We'll probably publish the next release around mid-week.
Activity
Lms24 commentedon Jan 15, 2024
Hey @Kaciras, thanks for writing in and for the reproduction steps! I'll take a look at this today, will keep you up to date on my findings.
fix(tracing-internal): Prefer `fetch` init headers over `fetch` input…
Lms24 commentedon Jan 15, 2024
Hi @Kaciras again, thank you for the reproduction steps and for even finding the incorrect line of code. I tested this, both live in Chromium as well as in our integration test setup and could confirm that browsers indeed seem to prefer the init options over the fetch input option (i.e. the
Requestpassed to the first argument of thefetchcall). So you were right, our instrumentation forwarded the wrong headers. I pushed a fix in #10176 which will be included in the next release. We'll probably publish the next release around mid-week.