mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
log x-forwarded-for header for debugging purpose
This commit is contained in:
parent
f8d5e3f261
commit
0874f6ff21
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export const createApp = (): {
|
|||
}
|
||||
},
|
||||
keyGenerator: (req) => {
|
||||
console.log('x-forwarded-for header', req.header('x-forwarded-for'))
|
||||
return getTokenByRequest(req) || req.ip
|
||||
},
|
||||
// skip preflight requests and test requests
|
||||
|
|
|
|||
Loading…
Reference in a new issue