From 1a497d402dc0f40d160cbd838aa50c99f06f8a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9A=D1=80=D1=83?= =?UTF-8?q?=D0=B3=D0=BB=D0=B8=D1=86=D0=BA=D0=B8=D0=B9?= Date: Mon, 20 Oct 2025 05:59:06 +0600 Subject: [PATCH] =?UTF-8?q?=D0=BA=D1=83=D1=87=D0=B0=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/server.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/server.ts b/server/server.ts index 061badd..f238aa7 100644 --- a/server/server.ts +++ b/server/server.ts @@ -14,10 +14,11 @@ const fastify = Fastify({ }) fastify.register(FastifyCors, { - origin: [ - 'http://localhost:3000', - 'tauri://localhost', - ], + origin: (host, cb) => { + console.log(host) + + cb(null, true) + }, }) fastify.register(FastifyCookie)