fix: trustProxy for webhook IP validation, filter expired payments, remove dead code
This commit is contained in:
@@ -39,6 +39,7 @@ const origin = (process.env.CORS_ORIGIN ?? '')
|
||||
const fastify = Fastify({
|
||||
logger: true,
|
||||
bodyLimit: getMaxUploadBodyBytes(),
|
||||
trustProxy: true,
|
||||
})
|
||||
|
||||
await fastify.register(cors, {
|
||||
|
||||
Reference in New Issue
Block a user