mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
fix
This commit is contained in:
1 parent
1f73b83a79
commit
bdf9a73d19
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user