From 11f5470a57a86f7cb4472d5eaecca4196b25158c Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 15 Nov 2024 06:17:00 +0100 Subject: [PATCH] modif cors to allow mobile to access --- apxtri/apxtri.js | 1 - 1 file changed, 1 deletion(-) diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index a5fc237..5142ddf 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -290,7 +290,6 @@ apxtri.runexpress = async (tribesdns, conf) => { } else { cor = regorigin.test(req.headers.origin); } - const cor=regorigin.test(req.headers.origin); if (!cor) console.log( `The domain name ${req.headers.origin} is not allow to access for CORS settings, add it in itm/tribename.json in dns current origin allow are filter by ${regtxt}`