Skip to content

Commit

Permalink
fix(logging): log CORS config
Browse files Browse the repository at this point in the history
  • Loading branch information
cgawron committed Sep 23, 2024
1 parent 8d5499b commit c449f3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ if (process.env.NODE_ENV === "development") {
);
}
else {
const ORIGINS = [process.env.CLIENT_URL, "https://appoint.gawron.cloud"];
console.log("enabling CORS for %j", ORIGINS);
app.use(
cors({
origin: [process.env.CLIENT_URL, "https://appoint.gawron.cloud"],
origin: ORIGINS,
credentials: true,
})
);
Expand Down

0 comments on commit c449f3f

Please sign in to comment.