@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user