another fix

This commit is contained in:
me 2025-03-15 12:00:23 +02:00
parent 677f80c760
commit 50a34b5ea8

View File

@ -13,7 +13,7 @@ const db_path = process.env.DB || config.config.db_path || "ucs.db";
const cors = (function() {
let origins = new Set();
for (const site in config.config.sites) {
config.sites[site].cors.forEach(origin => {origins.add(origin) });
config.config.sites[site].cors.forEach(origin => {origins.add(origin) });
}
return Array.from(origins);
})();