Closed loderunner closed 1 year ago
Thank you for investigating this, it really helped us while tracking down a header issue in one of our apps.
Version 4 has been officially released with whatwg-fetch@3.6.2
. Please check it out: npm install cross-fetch
.
According to the Fetch documentation on MDN, the
headers
property of theoptions
parameter can be:However, according to an example for errors below, an array of arrays of strings can be accepted (provided the inner arrays are of length 2).
This header initializer option is supported by the Headers constructor parameter, which can be
Testing in Chrome 109.0.5414.87, I found an inconsistency between what is supported by
cross-fetch
,whatwg-fetch
and what is supported by Chrome's native Fetch API.whatwg-fetch
:cross-fetch
:I found the same results for:
My test bench for Headers support is here.