mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08:00
feat: Add ugly CORS headers
This commit is contained in:
parent
2484ef80bc
commit
c8728c57af
@ -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…
Reference in New Issue
Block a user