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/ https://github.com/whatwg/fetch/issues/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.
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.