Skip to content

Commit

Permalink
chore: Add frontend url to cors origin
Browse files Browse the repository at this point in the history
  • Loading branch information
builtbysuraj committed Mar 2, 2024
1 parent 9ffc18d commit 19366c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const app = express()

app.use(
cors({
origin: [ENV.CLIENT_URL],
origin: [ENV.CLIENT_URL, 'http://localhost:5173', 'http://localhost:3000'],
credentials: true,
})
)
Expand Down

0 comments on commit 19366c7

Please sign in to comment.