From fd13b21329495b329892cbc89f5a56dfe52468dd Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 26 Feb 2026 14:11:26 +0100 Subject: [PATCH] allow port in cors --- apxtri/apxtri.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index 549b2a7..fb997ed 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -347,7 +347,8 @@ apxtri.runexpress = async (tribesdns, conf) => { app.use((req, res, next) => { const origin = req.headers.origin; if (origin && !regorigin.test(origin)) { - return res.status(403).json({ error: 'CORS not allowed' }); + console.log(`CORS blocked: ${origin}`); + return res.status(403).json({ error: 'CORS not allowed', origin }); } next(); });