Lewis Liu
Results
1
comments of
Lewis Liu
> Hi @Vbubblery > 请问这里面的用户验证是不是指header中的authorization? > 如果是header中的信息,目前直接放入header中就可以使用,如果是想在rule中拦截并加入验证信息,应该可以自己对rule进行二次开发,所以可否描述一下用户验证的使用场景? 实现basic author重写了beforeSendRequest 方法: *beforeSendRequest (requestDetail) { console.log(requestDetail._req.headers); if (!requestDetail || !requestDetail._req.headers || !requestDetail._req.headers["Proxy-Authorization"]) { return { response: { statusCode: 407, header: { 'Proxy-Authenticate':...