This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Cookies and fetch() on servers #7
Open
Description
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:
- Cloudflare ahttps://developers.cloudflare.com/workers/runtime-apis/headers/ Use case for Headers getAll whatwg/fetch#973
- Deno (It seems it allows all the Forbidden Header names - @lucacasonato please edit this issue to confirm, possibly add a reference).
- node-fetch (https://www.npmjs.com/package/node-fetch#extract-set-cookie-header)
I think it would be a good way to create a shared standard for this behavior.
Metadata
Metadata
Assignees
Labels
No labels