Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用app.use(express.logger('dev'))日志记录,需要能够过滤通过 HTTP 请求参数发送的敏感文本。
app.use(express.logger('dev'))
我可以看到敏感文本:
/users/sessions?username=test&password=test
我想要这样的日志条目:
/users/sessions?username=test&password=[FILTERED]