From c65a2a01572206bc394e791d8cb673965be4a805 Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Sat, 18 Apr 2026 03:14:03 +0300 Subject: [PATCH] fix(cors): autoriser header X-Api-Version --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2e214a9..f93abb4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ app.use( 'http://localhost:5174', ], allowMethods: ['GET', 'POST', 'OPTIONS'], - allowHeaders: ['Content-Type', 'Authorization'], + allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'], }) )