https://github.com/unix/api-fold-cookies
https://github.com/unix/api-fold-cookies
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unix/api-fold-cookies
- Owner: unix
- Created: 2022-01-28T19:50:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T20:20:42.000Z (over 3 years ago)
- Last Synced: 2025-03-28T19:55:02.599Z (3 months ago)
- Language: TypeScript
- Homepage: https://api-fold-cookies.vercel.app
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example for Edge Function
This is an example for demonstrating [discussions#7375](https://github.com/vercel/vercel/discussions/7375).
## Description
In Edge Function of Vercel, the headers are collapsed, which may cause browsers to be incompatible with multiple `set-cookie`.
- Run `curl --head https://api-fold-cookies.vercel.app`
- Open [demo](https://api-fold-cookies.vercel.app) and view 'Developer Console -> Application -> Storage -> Cookies'## Refs
- [RFC 2109](https://www.rfc-editor.org/rfc/rfc2109#section-4.2.2)
- [RFC 6265](https://www.rfc-editor.org/rfc/rfc6265#section-4.2.1)
- [em-http-request#82](https://github.com/igrigorik/em-http-request/issues/82)