Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

show not allowed list

Andras Bacsai8f14fd89efe8
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index bd2fe73b35..3b73e42662 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -110,10 +110,8 @@ fastify.addHook('onRequest', async (request, reply) => {
allowedList.push(`${remote.remoteIpAddress}:3000`);
})
}
- console.log({ allowedList })
- console.log({ host: request.headers.host, origin: request.headers.origin })
- if (!request.headers.origin && !request.headers.host.startsWith('host.docker.internal')) {
-
+ if (!allowedList.includes(request.headers.host)) {
+ console.log('not allowed', request.headers.host)
}
})
fastify.listen({ port, host }, async (err: any, address: any) => {