# Multiple setCookie calls only set the last cookie
Error page discards all but the last `Set-Cookie` header from response
good first issue🔨 p3-minor
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
3.xpending triageneeds reproduction
Cannot set headers after they are sent to the client
bugnitropossible regression
Setting cookie with useCookie on redirect causes error
3.xpending triage
ERROR Cannot set headers after they are sent to the client
pending triage2.x