Skip to content

Commit 2bc39bc

Browse files
committed
Implement CORS middleware
1 parent bd77672 commit 2bc39bc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/middlewares/cors.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import cors from "cors";
2+
3+
export const corsHandler = cors({
4+
credentials: true,
5+
origin: process.env.CLIENT_URL,
6+
});

0 commit comments

Comments
 (0)