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

Commit

Permalink
feat: correctly enable proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Oct 16, 2023
1 parent 0d3a72b commit e411d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class Server extends HighwayServer {
dir: join(process.cwd(), "..", "web")
});

this.express.set("trust proxy", 1);
this.express.enable("trust proxy");
this.express.use(
cors({ origin: "*", methods: ["GET", "DELETE", "POST", "PUT"] }),
cookieParser(),
Expand Down

0 comments on commit e411d01

Please sign in to comment.