diff options
author | Timo Kösters <timo@koesters.xyz> | 2022-04-07 17:09:07 +0200 |
---|---|---|
committer | Timo Kösters <timo@koesters.xyz> | 2022-04-07 17:09:07 +0200 |
commit | 00b362b43ba61d0d5a2b43a944e47556730e42c9 (patch) | |
tree | ef3b0535158fb93cdd0fcb366ac36b1b0bb4d157 /src/main.rs | |
parent | b6b27b66c83c322a9887b7b207788f7e4b2c348f (diff) | |
download | conduit-00b362b43ba61d0d5a2b43a944e47556730e42c9.zip |
fix: cors warning
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
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, |