mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 17:14:59 +08:00
fix CORS config error in actix
This commit is contained in:
parent
6add10b18f
commit
0ebf7b6214
@ -69,8 +69,8 @@ async fn main() -> Result<(), MainError> {
|
|||||||
.wrap(
|
.wrap(
|
||||||
Cors::new()
|
Cors::new()
|
||||||
.send_wildcard()
|
.send_wildcard()
|
||||||
.allowed_header("x-meili-api-key")
|
.allowed_headers(vec!["content-type","x-meili-api-key"])
|
||||||
//.max_age(86_400) // 24h
|
.max_age(86_400) // 24h
|
||||||
.finish(),
|
.finish(),
|
||||||
)
|
)
|
||||||
.wrap(middleware::Logger::default())
|
.wrap(middleware::Logger::default())
|
||||||
|
Loading…
Reference in New Issue
Block a user