[NEXT-582] Unable to define multiple Set-Cookie headers via config headers #40518
Closed
1 task done
Labels
linear: next
Confirmed issue that is tracked by the Next.js team.
Linking and Navigating
Related to Next.js linking (e.g., <Link>) and navigation.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
It is impossible to define multiple
Set-Cookie
headers, via next.config.js/headers. Next.js seems to only account for the last definedSet-Cookie
header for a given pathExpected Behavior
Based on the rfc I would expect to be able to define multiple
Set-Cookie
headers and for the headers to not be combined into one header. (they re not combined atm, only the last header is used)Link to reproduction
https://github.com/awareness481/next-config-cookies
To Reproduce
Set-Cookie
headers for each routehttp://localhost:3000/1
and observe that only one cookie is definedhttp://localhost:3000/2
and observe that only one cookie is definedNEXT-582
The text was updated successfully, but these errors were encountered: