Skip to content

Commit

Permalink
chore: log headers
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Sep 20, 2024
1 parent e1671ef commit 3c1021c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ app.use(express.static(path.join(__dirname, 'static')))

// Render the main page
app.get('/', (req, res) => {
console.log('headers', req.headers)
res.render('index', {
email: req.headers['x-forwarded-email'] || '',
name: req.headers['x-forwarded-name'] || '',
Expand Down

0 comments on commit 3c1021c

Please sign in to comment.