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(); });