@@ -181,7 +181,7 @@ fn cors_layer(server: &Server) -> CorsLayer {
|
||||
};
|
||||
|
||||
CorsLayer::new()
|
||||
.max_age(Duration::from_secs(86400))
|
||||
.max_age(Duration::from_hours(24))
|
||||
.allow_methods(METHODS)
|
||||
.allow_headers(headers)
|
||||
.allow_origin(allow_origin)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#![type_length_limit = "32768"] //TODO: reduce me
|
||||
#![expect(clippy::duration_suboptimal_units)] // remove after MSRV 1.91
|
||||
#![allow(unused_features)] // 1.96.0-nightly 2026-03-07 bug
|
||||
|
||||
mod handle;
|
||||
mod layers;
|
||||
|
||||
Reference in New Issue
Block a user