Skip to content

Commit 58f2f19

Browse files
author
0x4d
committed
Add CORS_ORIGIN env var
1 parent 269a2da commit 58f2f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ app.use(async (ctx, next) => {
4848
}
4949
})
5050

51-
app.use(cors({ credentials: true }))
51+
app.use(cors({ credentials: true, origin: process.env.CORS_ORIGIN }))
5252

5353
app.on('error', (err) => {
5454
logger.error(err)

0 commit comments

Comments
 (0)