split base_url into dashboard_url and base_domain

This commit is contained in:
Milo Schwartz 2025-01-07 20:32:24 -05:00
parent 26a165ab71
commit e1f0834af4
No known key found for this signature in database
17 changed files with 100 additions and 37 deletions

View file

@ -31,7 +31,7 @@ export function createApiServer() {
);
} else {
const corsOptions = {
origin: config.getRawConfig().app.base_url,
origin: config.getRawConfig().app.dashboard_url,
methods: ["GET", "POST", "PUT", "DELETE", "PATCH"],
allowedHeaders: ["Content-Type", "X-CSRF-Token"]
};