Access to XMLHttpRequest at 'https://34cd046f.ngrok.io/node/vcode/123456543' from origin 'null' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mod...
接着上遍文章(使用session保存用户数据)来让使用jwt保存用户数据。这里会用到passport-jwt/jsonwebtoken。passport-jwt是passport的一个验证策略。它使用jwt(json web token)验证。jsonwebtoken是一个编码、解码、验证jwt的模块。