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) => {