diff --git a/meilisearch-http/src/main.rs b/meilisearch-http/src/main.rs index c60cb2f1a..1782f9126 100644 --- a/meilisearch-http/src/main.rs +++ b/meilisearch-http/src/main.rs @@ -70,6 +70,7 @@ async fn main() -> Result<(), MainError> { Cors::new() .send_wildcard() .allowed_header("x-meili-api-key") + .max_age(86_400) // 24h .finish(), ) .wrap(middleware::Logger::default())