allow port in cors

This commit is contained in:
2026-02-26 13:41:50 +01:00
parent 25e0bab6e0
commit f126c82cf3

View File

@@ -317,7 +317,7 @@ apxtri.runexpress = async (tribesdns, conf) => {
// Cors management // Cors management
let regtxt = "(test"; let regtxt = "(test";
doms.forEach((d) => { doms.forEach((d) => {
regtxt += `|${d.replace(/\./g, "\\.")}`; regtxt += `|${d.replace(/\./g, "\\.")}(:[0-9]+)?`;
}); });
regtxt += ")$"; regtxt += ")$";
// let cor = false;whatwg-url // let cor = false;whatwg-url