modif cors to allow mobile to access

This commit is contained in:
philc 2024-11-15 06:17:00 +01:00
parent ff74b2ff15
commit 11f5470a57

View File

@ -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}`