Skip to content

Commit

Permalink
fix(cors): allow credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
withSang committed Jan 17, 2024
1 parent ae742ef commit 7e233de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ app.use(
app.use(
cors({
origin: [/sparcs\.org$/, /kaist\.ac\.kr$/],
credentials: true,
}),
);

Expand Down Expand Up @@ -67,7 +68,7 @@ app.use((err, req, res, next) => {
logger.api.error(err?.message || err); // TODO: Log params and body?
res.status(err.status || 500);
res.json({
error: err,
error: err, // 이거 뭐임? 왜 넣었지 ㅋㅋ 이거 없애도 되는거 아님? ㅋㅋ 이거 없애면 에러 안나는데 ㅋㅋ 이거 왜 넣었지 ㅋㅋ
});
});

Expand Down

0 comments on commit 7e233de

Please sign in to comment.