Skip to content

Commit

Permalink
change(main): trust proxy set to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
face-hh authored Jul 4, 2023
1 parent 53cf954 commit 920b79c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Backend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const app = express();
app.use(express.static(path.resolve('src/Frontend/Public')));
app.use(express.static(path.resolve('CDN')));
app.use(cookieParser());
app.set('trust proxy', 1);

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
Expand Down

0 comments on commit 920b79c

Please sign in to comment.