From 056a875562081ecad76f20444a7495891e7ce9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EA=B1=B4=EC=9A=B0?= Date: Tue, 24 Dec 2024 14:49:48 +0900 Subject: [PATCH] =?UTF-8?q?fix/#39/cors=20=EC=84=A4=EC=A0=95=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20pull=20develop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 0c3a797..c5770dc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -45,6 +45,9 @@ async function bootstrap() { app.enableCors({ origin: ['.localhost:3000', 'https://cokoedu.com'], credentials: true, + methods: 'GET,HEAD,OPTIONS,POST,PUT', + allowedHeaders: + 'Origin, X-Requested-With, Content-Type, Accept, Authorization', }); app.use(cookieParser());