mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
bump actix cors
This commit is contained in:
parent
d45c794a9e
commit
044dbb0333
3 changed files with 7 additions and 6 deletions
|
@ -84,11 +84,10 @@ async fn main() -> Result<(), MainError> {
|
|||
let http_server = HttpServer::new(move || {
|
||||
create_app(&data, enable_frontend)
|
||||
.wrap(
|
||||
Cors::new()
|
||||
Cors::default()
|
||||
.send_wildcard()
|
||||
.allowed_headers(vec!["content-type", "x-meili-api-key"])
|
||||
.max_age(86_400) // 24h
|
||||
.finish(),
|
||||
)
|
||||
.wrap(middleware::Logger::default())
|
||||
.wrap(middleware::Compress::default())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue