mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-23 12:15:36 +02:00
split base_url into dashboard_url and base_domain
This commit is contained in:
parent
26a165ab71
commit
e1f0834af4
17 changed files with 100 additions and 37 deletions
|
@ -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"]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue