summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTimo Kösters <timo@koesters.xyz>2022-04-07 17:09:07 +0200
committerTimo Kösters <timo@koesters.xyz>2022-04-07 17:09:07 +0200
commit00b362b43ba61d0d5a2b43a944e47556730e42c9 (patch)
treeef3b0535158fb93cdd0fcb366ac36b1b0bb4d157 /src/main.rs
parentb6b27b66c83c322a9887b7b207788f7e4b2c348f (diff)
downloadconduit-00b362b43ba61d0d5a2b43a944e47556730e42c9.zip
fix: cors warning
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d20ee75..67ec82e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -141,7 +141,7 @@ async fn run_server(config: &Config, db: Arc<RwLock<Database>>) -> io::Result<()
.compression()
.layer(
CorsLayer::new()
- .allow_origin(cors::any())
+ .allow_origin(cors::Any)
.allow_methods([
Method::GET,
Method::POST,