Skip to content

Commit

Permalink
add localhost to cors
Browse files Browse the repository at this point in the history
  • Loading branch information
BEW111 committed Aug 18, 2024
1 parent 2803085 commit fbc0283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/config/createExpressApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const createExpressApp = (sessionStore: MongoStore): express.Express => {
// app.use(cors({ credentials: true, origin: FRONTEND_URL }));
app.use(
cors({
origin: '*',
credentials: false,
origin: [FRONTEND_URL, 'http://localhost:3000'],
credentials: true,
}),
);
// Gives express the ability to parse client cookies and add them to req.cookies
Expand Down

0 comments on commit fbc0283

Please sign in to comment.