fix: cors warning

This commit is contained in:
Timo Kösters
2022-04-07 17:09:07 +02:00
parent b6b27b66c8
commit 00b362b43b
2 changed files with 3 additions and 3 deletions

View File

@@ -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,