-
Notifications
You must be signed in to change notification settings - Fork 0
Cookies and fetch() on servers #7
Comments
In Node.js we need to handle this case yet. I would prefer we did not add yet another API for doing this but converge to what will be the standard. |
@mcollina Please see https://deno.land/manual/runtime/web_platform_apis#fetch-api for what Deno does:
|
I think there are two distinct questions here: What to do about forbidden request headers? (e.g
|
Is this what Deno does? That's not what Cloudflare is doing. |
Just popping by to say I'm strongly in favor of the deno behavior for both cases. |
With the exception of the |
Undici now follows deno on the handling of forbidden/safe-listed headers. I'll also implement |
Is it possible for wintercg to bypass the fetch spec and decide to implement |
The
fetch()
spec forbids to read and store cookies because of https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.How should handle cookies in server environments?
Most implementations have allow them in some way, however this changed between all the implementations:
I think it would be a good way to create a shared standard for this behavior.
The text was updated successfully, but these errors were encountered: