Skip to content

Commit

Permalink
chore: CORS credentials: true 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed May 6, 2024
1 parent b54e22b commit e3cb783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ app.onError((err, c) => {
});

app.use('*', cors({
credentials: true,
origin: (origin, c) => {
if (c.env.DEV) {
return origin;
Expand Down

0 comments on commit e3cb783

Please sign in to comment.