mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
fix cors options
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user