another fix
This commit is contained in:
parent
677f80c760
commit
50a34b5ea8
@ -13,7 +13,7 @@ const db_path = process.env.DB || config.config.db_path || "ucs.db";
|
|||||||
const cors = (function() {
|
const cors = (function() {
|
||||||
let origins = new Set();
|
let origins = new Set();
|
||||||
for (const site in config.config.sites) {
|
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);
|
return Array.from(origins);
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user