From 8e95564fa18e2781f2fb5483b43fd5f8788e9954 Mon Sep 17 00:00:00 2001 From: Pedro Barreto Date: Sun, 3 May 2026 19:49:12 -0300 Subject: [PATCH] chore: inclui origin no cors --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6ae84da..2f1d9d5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ import cookieParser from "cookie-parser"; import router from "~/router/router.js"; export const app = express(); -app.use(cors({ credentials: true })); +app.use(cors({ credentials: true, origin: ["http://localhost:3000"] })); app.use(express.json()); app.use(cookieParser());