Skip to content

Commit

Permalink
fix: redact res.body
Browse files Browse the repository at this point in the history
  • Loading branch information
jia1 committed Sep 25, 2024
1 parent 83af458 commit ca61cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/core/loaders/express.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const expressApp = ({ app }: { app: express.Application }): void => {
winstonInstance: logger,
ignoredRoutes: ['/'],
requestWhitelist: ['method', 'url', 'body', 'headers'],
responseWhitelist: ['body', 'statusCode'],
responseWhitelist: ['statusCode'],
requestFilter: (req: Request, propName: string) => {
if (propName === 'headers' && req.headers.authorization) {
// we do this instead of adding it to `headerBlacklist`
Expand Down

0 comments on commit ca61cff

Please sign in to comment.