Skip to content

Commit

Permalink
Remove console log for token (#257)
Browse files Browse the repository at this point in the history
Remove console log, which would log entire request, including token
  • Loading branch information
ssb-jnk authored May 16, 2024
1 parent 7408295 commit 11e6245
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@ app.use(
'/api',
proxy(DAPLA_TEAM_API_URL, {
proxyReqBodyDecorator: function (bodyContent, srcReq) {
console.log(`Request Body: ${bodyContent}`)
return bodyContent
},
proxyReqOptDecorator: function (proxyReqOpts, srcReq) {
console.log(`Request Headers:`, srcReq.headers)
if (srcReq.body) {
console.log(`Request Body:`, srcReq.body)
}
return proxyReqOpts
},
proxyReqPathResolver: function (req) {
Expand Down

0 comments on commit 11e6245

Please sign in to comment.