Skip to content

Commit

Permalink
Revert "Update index.ts"
Browse files Browse the repository at this point in the history
This reverts commit c1bef70.
  • Loading branch information
ytgs5148 committed Sep 19, 2024
1 parent f828fb5 commit f7b1c11
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ app.use(express.json());
app.use(express.static(path.join(__dirname, 'public')))
app.use(
cors({
origin: (origin, callback) => {
if([process.env.FRONTEND_URL1,process.env.FRONTEND_URL2].includes(origin || '')){
callback(null, origin);
}
}
origin: process.env.FRONTEND_URL,
credentials: true,
})
);
app.use(express.static("build"));
Expand Down

0 comments on commit f7b1c11

Please sign in to comment.