RedHatInsights / insights-chrome

Chroming for Insights apps
MIT License
26 stars 131 forks source link

Kiota headers get garbled #2461

Open edewit opened 1 year ago

edewit commented 1 year ago

When using Kiota in a console dot app the iqeEnablement.ts fetch replacement change the headers to something invalid. I can't 100% say what is the cause

This is what happens an array

Access-Control-Request-Headers: 0,user-agent
Hyperkid123 commented 1 year ago

@edewit We automatically add auth header to any fetch/xhr. Can you give an example of the request so we can reproduce the issues and what would be the expected header vs the mangled one?

edewit commented 1 year ago

@Hyperkid123 see the fix, the error is when the headers are in the form of Record<string, string[]>