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());