Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Trust proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDogHusky committed Sep 1, 2024
1 parent b3c5678 commit 86d41d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function shouldCompress(req, res) {
}

app.set('view engine', 'ejs');
app.set('trust proxy', 1);
app.set('views', path.join(__dirname, '..', 'web', 'views'));
app.set('host', process.env.HOST || 'localhost');
app.use(cors());
Expand Down

0 comments on commit 86d41d6

Please sign in to comment.