mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
change cors max age
This commit is contained in:
parent
3e13e728aa
commit
940105efb3
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user