We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd77672 commit 2bc39bcCopy full SHA for 2bc39bc
1 file changed
src/middlewares/cors.ts
@@ -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