Skip to content

Commit

Permalink
Trust proxy for GAE https forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
jonobr1 authored Mar 9, 2024
1 parent 238667c commit 8582c26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const config = {

export const app = express();

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

// Serve static assets from the /public folder
app.use('/public', express.static(path.join(__dirname, '/public')));

Expand Down

0 comments on commit 8582c26

Please sign in to comment.