Correct way to get cookie from the rest api - Nuxt