Skip to content

Commit

Permalink
fix: ERR_ERL_UNEXPECTED_X_FORWARDED_FOR
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead committed Jun 10, 2024
1 parent 63987c9 commit d8fde4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import 'dotenv/config';

const app = express();

// Set trust proxy
app.set('trust proxy', true);

// Configure nunjucks
nunjucks.configure('src/templates', {
autoescape: true,
Expand Down

0 comments on commit d8fde4e

Please sign in to comment.