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)