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
let regtxt = "(test";
doms.forEach((d) => {
regtxt += `|${d.replace(/\./g, "\\.")}`;
regtxt += `|${d.replace(/\./g, "\\.")}(:[0-9]+)?`;
});
regtxt += ")$";
// let cor = false;whatwg-url