Skip to content

Commit 886135c

Browse files
chore: redact api-key headers in debug logs
1 parent d1d7378 commit 886135c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/internal/utils/log.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
107107
name,
108108
(
109109
name.toLowerCase() === 'authorization' ||
110+
name.toLowerCase() === 'api-key' ||
111+
name.toLowerCase() === 'x-api-key' ||
110112
name.toLowerCase() === 'cookie' ||
111113
name.toLowerCase() === 'set-cookie'
112114
) ?

0 commit comments

Comments
 (0)