allow port in cors

This commit is contained in:
2026-02-26 14:38:08 +01:00
parent 50b9b13c5d
commit b492bea12f

View File

@@ -325,8 +325,11 @@ apxtri.runexpress = async (tribesdns, conf) => {
const allowedOrigins = [
'http://dev.smatchit.io:8081',
];
console.log('Allowed origins hardcoded:', allowedOrigins);
console.log('CORS regex pattern:', regtxt);
app.use(cors({
origin: function (origin, callback) {
console.log('CORS check - origin:', origin);
if (!origin) {
return callback(null, true);
}