fix cors options

This commit is contained in:
mbecker20
2026-01-18 19:35:21 -08:00
parent 0c292f7157
commit 90557ae514
3 changed files with 6 additions and 3 deletions

4
Cargo.lock generated
View File

@@ -3385,9 +3385,9 @@ dependencies = [
[[package]]
name = "mogh_server"
version = "1.1.1"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4bb783dca6bc8cca93aa3eefbdabe52ec31eba370548c08de8034f3034958ec1"
checksum = "3c6c3aa20123c38b4f2cb63f42099352f9f4003ff72e744f26f4cd72023c4274"
dependencies = [
"anyhow",
"axum",

View File

@@ -51,7 +51,7 @@ partial_derive2 = "0.4.5"
derive_variants = "1.0.0"
mongo_indexed = "2.0.2"
resolver_api = "3.0.0"
mogh_server = "1.1.1"
mogh_server = "1.1.2"
toml_pretty = "2.0.0"
mungos = "3.2.2"
svi = "1.2.0"

View File

@@ -1017,6 +1017,9 @@ impl mogh_server::cors::CorsConfig for &CoreConfig {
fn allowed_origins(&self) -> &[String] {
&self.cors_allowed_origins
}
fn allow_credentials(&self) -> bool {
self.cors_allow_credentials
}
}
impl mogh_server::session::SessionConfig for &CoreConfig {