Skip to content

Commit

Permalink
Add trust proxy setting to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcrammer committed Mar 25, 2024
1 parent cae4b2e commit 33e3e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import "./models/index"
const PORT = process.env.PORT || 3000
const app = Express()

app.set("trust proxy", 1)

app.use(json())
app.use(cors())
app.use(helmet())
Expand Down

0 comments on commit 33e3e2c

Please sign in to comment.