Netlify App doesn't set appropriate cookies even though receiving `set-cookie` responses

I deployed a Nuxt 3 app which uses Supabase for authentication to Netlify. On the local development server, authentication works as intended and the cookies are being set. However, on the deployed site, Netlify doesn’t set and persist the authentication cookie on the front-end.

I don’t know if I’m missing something here but any assistance provided would be greatly appreciated. Thank you!

Hi @ninjaaaaah

No, Netlify doesn’t set the cookies from the authentication with Supabase. That is the responsibility of your app/script.

Without knowing the domain in question, and having information about how the app is setting (or is trying to set) cookies, it does make it difficult to offer any assistance.


The domain of my app is here:

Here’s the GitHub repository:

Looking through the codebase, I cannot see anywhere you are setting a cookie. I see you are reading the set-cookie header in fetchWithCookie.js and setting a persisted state.

I have the same problem, is there already a solution to this.
How can I set the cookie?
Thank you very much.

You’d have your page do so using all the typical methods, which will be specific to your implementation, framework, and language. The generic javascript that does this is described here:

JavaScript Cookies.