mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
feat: Add ugly CORS headers
This commit is contained in:
parent
2484ef80bc
commit
c8728c57af
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ fn main() {
|
|||
let body = search(meta.clone(), db.clone(), &common_words, &query.query).unwrap();
|
||||
body
|
||||
})
|
||||
.with(warp::reply::with::header("Content-Type", "application/json"));
|
||||
.with(warp::reply::with::header("Content-Type", "application/json"))
|
||||
.with(warp::reply::with::header("Access-Control-Allow-Origin", "*"));
|
||||
|
||||
warp::serve(routes).run(([127, 0, 0, 1], 3030));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue