change cors max age

This commit is contained in:
mpostma 2020-05-28 19:39:38 +02:00
parent 3e13e728aa
commit 940105efb3

View File

@ -70,6 +70,7 @@ async fn main() -> Result<(), MainError> {
Cors::new() Cors::new()
.send_wildcard() .send_wildcard()
.allowed_header("x-meili-api-key") .allowed_header("x-meili-api-key")
.max_age(86_400) // 24h
.finish(), .finish(),
) )
.wrap(middleware::Logger::default()) .wrap(middleware::Logger::default())