Home

Issue: 3138

the problem of middleware function

[issue link]

when I set middleware function in the nuxt.config.js
image

the first time It’s called on server side console
image

and then it’s called on browser console when I change the route of page
image

why??? so that I can’t get the right way of cookie… I don’t know I should get it by either req.header or client cookie because the first time I can get it from req.header but not on client, and then I can get by client one not the req.header…

…and why the vuex getter will be called by itself

image
image
image
forgive my poor English…😦 so I choose display pics…

This question is available on Nuxt.js community (#c2718)