getSetCookie method
The getSetCookie()
method of the Headers interface returns an
array containing the values of all headers associated with a response.
This allows Headers objects to handle having multiple Set-Cookie
headers, which wasn't possible prior to its implementation.
This method is intended for use on server environments (for example
Node.js). Browsers block frontend JavaScript code from accessing the
header, as required by the Fetch spec, which defines Set-Cookie
as a
forbidden response-header name
that
must be filtered out
from any response exposed to frontend code.
Implementation
external JSArray<JSString> getSetCookie();