modif cors to allow mobile to access
This commit is contained in:
parent
ff74b2ff15
commit
11f5470a57
@ -290,7 +290,6 @@ apxtri.runexpress = async (tribesdns, conf) => {
|
|||||||
} else {
|
} else {
|
||||||
cor = regorigin.test(req.headers.origin);
|
cor = regorigin.test(req.headers.origin);
|
||||||
}
|
}
|
||||||
const cor=regorigin.test(req.headers.origin);
|
|
||||||
if (!cor)
|
if (!cor)
|
||||||
console.log(
|
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}`
|
`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}`
|
||||||
|
Loading…
Reference in New Issue
Block a user