My Nuxt application behind Cloudflare Pages sends out multiple set-cookie
headers. All of them get concatenated with a comma “,” which prevents users from logging in. This is incorrect behaviour due to RFC 6265 prohibiting folding multiple Set-Cookie headers into a single header.
See https://developers.cloudflare.com/workers/platform/headers/
for more information.
The issue affected CDN/Cache in the past and has resurfaced for Pages. Here’s link to the old incident: https://www.cloudflarestatus.com/incidents/30ptcb3b0s2w
and the thread https://community.cloudflare.com/t/prevent-cloudflare-from-automatically-folding-set-cookie-headers/304876
.