Set-cookie error not showing in v0

Everyone let me ask: "I create a login by listening to set-cookie with value jwt when responding and attaching it to cookie. But in v0 it is not there. I have to publish it for the cookie to be saved. Is there a way to save it when it is still in chat v0?

Thank you!

If you check the network tab and look at your request, you should see the set-cookie header in the response. Chrome will put a little warning badge beside it if it doesn’t accept the cookie, which is most likely because the cookie has a certain domain it expects and when you’re in the v0 preview it’s running on a different domain. That message should give you enough info to fix the cookie settings to use a domain config that works in v0

1 Like

So what is the solution, I am using subdomain to call v0 when setting-cookie?

I need an example

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.