From bdf9a73d194b5e85fede6a6f9c340fdf9380627a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 6 Sep 2022 09:42:13 +0200 Subject: [PATCH] fix --- apps/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 7eb745ae1..e53665a2c 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -99,7 +99,7 @@ fastify.register(cors); fastify.addHook('onRequest', async (request, reply) => { console.log({ host: request.headers.host, origin: request.headers.origin }) if (!request.headers.origin && !request.headers.host.startsWith('host.docker.internal')) { - throw new Error('Invalid origin'); + } }) fastify.listen({ port, host }, async (err: any, address: any) => {