Closed edouard-lopez closed 5 years ago
it's probably some implementation issue with the computePayload
function. isomorphic-fetch
is pretty old, so that function might be interacting with the Headers
api in a way that is not supported anymore or the lib has been monkey patched somehow. Headers
does not have any special handle for the X-Auth-Token
header.
I send a fetch requesh follow:
When I use
isomorphic-fetch
it works as excpected, but when I switch tocross-fetch
this fails.:x: Using
cross-fetch
andHeaders()
failsWhere
computePayload()
create a headers oject like:The resulting request is:
headers
is missing :/:heavy_check_mark: Using
cross-fetch
and object literalA workaround is to use a literal object instead of
Headers()
:The resulting request is:
Question
Why is
cross-fetch
not working withHeaders()
?