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
Now that will work in Firefox just fine. But apparently in Chromium since some time you need to add extraHeaders to extraInfoSpec in order to be able to retrieve and modify some headers.
So something like this would fix the above example then:
My simple fix proposition:
check the listener of onBeforeSendHeaders, if the resulting requestHeaders contain any of the "extra" headers, do push "extraHeaders" to extraInfoSpec before sending that to chrome
This isn't present in Firefox, but that polyfill doesn't cover it currently. Consider the following example:
Now that will work in Firefox just fine. But apparently in Chromium since some time you need to add
extraHeadersto extraInfoSpec in order to be able to retrieve and modify some headers.So something like this would fix the above example then:
My simple fix proposition:
check the listener of onBeforeSendHeaders, if the resulting
requestHeaderscontain any of the "extra" headers, do push "extraHeaders" to extraInfoSpec before sending that to chromeAffected headers include (https://developer.chrome.com/extensions/webRequest):