I recognize this issue from Cloudflare Workers (Where it’s fixed).
… but this happens on Cloudflare Pages & Tunnel too and there it seems un-fixable.
Since the cookies are folded, only the first cookie is set correctly in all modern browsers.
Set-Cookie:
test=test; expires=Sat, 20 Jul 2024 10:32:14 GMT; SameSite=Strict; Domain=testdomain.xyz; Path=/, test2=test2; expires=Sat, 20 Jul 2024 10:32:14 GMT; SameSite=Strict; Domain=testdomain.xyz; Path=/
Without tunnel it is correct:
Set-Cookie:
test=test; expires=Sat, 20 Jul 2024 10:32:14 GMT; SameSite=Strict; Domain=testdomain.xyz; Path=/
Set-Cookie:
test2=test2; expires=Sat, 20 Jul 2024 10:32:14 GMT; SameSite=Strict; Domain=testdomain.xyz; Path=/