Handling Cookies in API Routes
I have global middleware:
And those two routes in
and
I was refering to this section in docs https://nuxt.com/docs/api/composables/use-cookie#handling-cookies-in-api-routes
When I run this app I expect to create cookie and
And those two routes in
server/api/getCookie.ts file: and
server/api/setCookie.ts:I was refering to this section in docs https://nuxt.com/docs/api/composables/use-cookie#handling-cookies-in-api-routes
When I run this app I expect to create cookie and
console.log it but it doesn't save cookie even on multiple reloads of the app (screenshot). Why?