I’m writing a reverse proxy using wrangler dev to debug locally.
I’m trying to set multiple cookies on the response:
res = new Response(res.body, res); res.headers.append('Set-Cookie',`cookie1=val1; SameSite=Strict;`); res.headers.append('Set-Cookie',`cookie2=val2; SameSite=Strict;`);
When running wrangler dev locally, only the second cookie is being set ovewriting the first cookies.
While publishing to Cloudflare using wrangler publish and sending the request, both cookies are being set successfully.
Do I miss anything in my implementation?