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
This array format is unsupported by the current code (only Headers objects or the dictionary form are).
Impact
// this works as expected the first time only, when there's no cookies yetawaitfetchCookie(url,{headers: [["x-my-header": "my-header-value"]]});// this overwrites the headers with the cookie -- removing any headers passed here. ⚠️ awaitfetchCookie(url,{headers: [["x-my-header": "my-header-value"]]});
The text was updated successfully, but these errors were encountered:
Observation
https://fetch.spec.whatwg.org/#typedefdef-headersinit lists two options for the headers field (passing the
Headers
object isn't actually in the spec).In
lib.dom.d.ts
the field has the following type ( link )This array format is unsupported by the current code (only
Headers
objects or the dictionary form are).Impact
The text was updated successfully, but these errors were encountered: