Add better cors for core

This commit is contained in:
Tobias Reisinger 2023-11-24 01:10:33 +01:00
parent 32c75ad73a
commit 9f64075f5a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 39 additions and 7 deletions
emgauwa-core/src

View file

@ -16,6 +16,7 @@ pub struct Settings {
pub database: String,
pub port: u16,
pub host: String,
pub origins: Vec<String>,
pub logging: Logging,
}
@ -25,6 +26,7 @@ impl Default for Settings {
database: String::from("sqlite://emgauwa-core.sqlite"),
port: constants::DEFAULT_PORT,
host: String::from("127.0.0.1"),
origins: Vec::new(),
logging: Logging::default(),
}
}