From bf15353dd0ff2e58d201a473d8397fee10599dcd Mon Sep 17 00:00:00 2001 From: Steve Korshakov Date: Wed, 27 Aug 2025 00:01:57 -0700 Subject: [PATCH] fix: fix cors --- sources/app/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/app/api.ts b/sources/app/api.ts index 762b809..c7832aa 100644 --- a/sources/app/api.ts +++ b/sources/app/api.ts @@ -64,7 +64,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> app.register(import('@fastify/cors'), { origin: '*', allowedHeaders: '*', - methods: ['GET', 'POST'] + methods: ['GET', 'POST', 'DELETE'] }); app.get('/', function (request, reply) { reply.send('Welcome to Happy Server!');