Vue+node routing Jump problem

when using vue+node for route redirection. Vue itself can be routed, and when I use node as the service layer, there are get requests in node.

Question1: to achieve login and registration, remember user information, etc., is it stored in session or where in the actual situation of the company?

question 2: if I store in session on the node side, how can I get this session? when I jump to an interface (get request) (because personal route redirection is currently achieved through vue)

I am a novice. If there is anything wrong with my thinking, please give me some advice. Thank you.

Mar.20,2021

since it's SPA, try not to use session. Jwt is available.

The route of

vue is not captured by the route of node. It is also suggested that you can use ng to proxy your vue program, api to deploy separately, and then use ng agent to avoid cross-domain

Menu