From c02a6fdbe1668f98446b36a97d8b6bc3400e8fa0 Mon Sep 17 00:00:00 2001 From: DmitriyA Date: Wed, 26 Mar 2025 08:38:02 -0400 Subject: [PATCH] add OPTIONS --- src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8933d99..88fd9d2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,8 +9,7 @@ async function bootstrap() { app.enableCors({ origin: '*', - //methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', - methods: '*', + methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS', allowedHeaders: 'Content-Type, Authorization', }); await app.listen(process.env.PORT ?? 3000);