I used to get cookies for API requests (both on server and client) with
process.browser ? document.cookie : global.__VUE_SSR_CONTEXT__.req.headers.cookie
But now, after updating, it doesn't work. Console logging shows that global.__VUE_SSR_CONTEXT__
(and just __VUE_SSR_CONTEXT__
) is undefined.
I'm using the latest versions of all (nuxt@1.0.0-rc6,vue@2.4.2,vue-server-renderer@2.4.2).