Add better cors for core
This commit is contained in:
parent
32c75ad73a
commit
9f64075f5a
5 changed files with 39 additions and 7 deletions
emgauwa-core/src
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue