Closed silentworks closed 8 months ago
Thanks for the report. We've identified this as a bug in our new functions runtime so will prioritise a fix.
We have a fix ready. I'll update this ticket when it's rolled out
Thank you so much for this @ascorbic.
Describe the bug When using Netlify build we are only getting one cookie set when we have multiple Set-Cookie in the header. This is inconsistent with how the Remix dev server works and how the MDN docs say it should work.
To Reproduce Steps to reproduce the behavior:
npx create-remix@latest --template netlify/remix-template
app/root.tsx
file and add the followingexport const meta: MetaFunction = () => [{ charset: "utf-8", title: "New Remix App", viewport: "width=device-width,initial-scale=1", }];
export const loader = async () => { const ckHeaders = new Headers([ ["Set-Cookie", "lulu=meow; Max-Age=3600; Path=/; SameSite=Lax"], ["Set-Cookie", "booya=kasha; Max-Age=3600; Path=/; SameSite=Lax"], ]);
return json( {}, { headers: ckHeaders, } ); };
export default function App() { return (
); }