Node express项目(2) No authorization token was found

express接入了JWT时,在拿到token去访问接口时,报错 No authorization token was found,其实问题很简单,你在你的token前面加 'Bearer ',让你的请求头格式为 config.headers['Authorization'] = 'Bearer ' + token即可

Node express项目(2) No authorization token was found_第1张图片

 

你可能感兴趣的:(node,node.js)