-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Unable to set multiple cookies #3024
Comments
Bug in the dev server, we need to use this to allow multiple of the same header: https://nodejs.org/api/http.html#responsesetheadername-value |
This is apparent a problem with the fetch standard :/. Think there is probably a workaround though. |
Oh really? Thats interesting. Do you have a link or anything? Just for my curiosity |
here's one such: whatwg/fetch#973 There's not a method on Headers to get all of the headers. calling .append() results in concatenating the headers, comma-separated. Set-Cookie is the exception which cannot be done this way. The reason you see it correctly in your console.log is because node-fetch (which we are using for this) has a special |
Reopening to fix the Netlify adapter bug. |
What version of
astro
are you using?1.0.0-beta.2
What package manager are you using?
npm
What operating system are you using?
mac
Describe the Bug
It seems like only one cookie is being set, consider the following code:
Only one cookie actually makes it to the browser:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-v7wdzd?file=src/pages/foo.js
Participation
The text was updated successfully, but these errors were encountered: