Skip to content

Commit

Permalink
rollback origin
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgehl3n committed Nov 18, 2023
1 parent f97f486 commit 440e815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class Application {

private _setMiddlewares(): void {
this.express.use(cors({
origin: '*',
origin: [process.env.FRONTEND_URL!, process.env.APP_FRONTEND_URL || ""],
credentials: true,
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
optionsSuccessStatus: 200
}));
Expand Down

0 comments on commit 440e815

Please sign in to comment.