Closed lijiliang closed 5 years ago
@request header string *Authorization
好的,谢谢
不如这样设置egg-jwt吧:
config.jwt = {
secret: 'you_guess',
// FIXME: 调试的时候先临时把它关了:
enable: false,
match: /^\/api/,
}
(这么多接口,每一都加@request header string *Authorization
,太难了)
请问,如果在api的请求头需要加Authorization,要如何配置?