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