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
{{ message }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
The server user agent does not have a cookie jar. As such, the set-cookie header on a response is not processed, or filtered from the visible response headers.
Servers do not follow the same-origin policy, because the http agent currently does not have the concept of origins, and it does not have a cookie jar. This means servers do not need to protect against leaking authenticated data cross origin. Because of this servers do not implement the following sections of the WHATWG fetch specification:
A fetch with a redirect mode of manual will return a basic response rather than an opaqueredirect response.
The request and response header guards are implemented, but unlike browsers do not have any constraints on which header names are allowed.
The referrer, referrerPolicy, mode, credentials, cache, integrity, keepalive, and window properties and their relevant behaviours in RequestInit are not implemented. The relevant fields are not present on the Request object.
Of course, this would need to be bike-shedded and written more formally. Please suggest any more deviations we'd want here.
Note this list omits the handling of file: urls. Node.js does not wish to implement file url support at the moment because of security concerns. People (@mcollina for example) have raised good concerns it would be too easy to get a file url from a user and pass that to fetch. I think it's probably fine for servers/edge to deviate on this?
We should discuss things like cors behavior - there are questions/suggestions about this in nodejs/undici#1315 (comment)
I think https://deno.land/manual/runtime/web_platform_apis#spec-deviations is a good baseline but I would request the following deviations for what we standardize:
Of course, this would need to be bike-shedded and written more formally. Please suggest any more deviations we'd want here.
Note this list omits the handling of
file:urls. Node.js does not wish to implement file url support at the moment because of security concerns. People (@mcollina for example) have raised good concerns it would be too easy to get afileurl from a user and pass that tofetch. I think it's probably fine for servers/edge to deviate on this?cc @lucacasonato