Skip to content

Commit e3468fe

Browse files
add missing sensitive fields
1 parent d3de86a commit e3468fe

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/utils/log.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
import { cleanJson } from './json'
22

33
const SENSITIVE_FIELDS = [
4+
'auth',
5+
'authorization',
6+
'authtoken',
47
'cookie',
58
'Cookie',
9+
'proxy-athorization',
10+
'rawheaders',
11+
'token',
612
'vtexIdclientautcookie',
13+
'x-vtex-api-appkey',
14+
'x-vtex-api-apptoken',
15+
'x-vtex-credential',
16+
'x-vtex-session',
717
]
818

919
export const cleanLog = (log: {[k: string]: any}) => {

0 commit comments

Comments
 (0)