diff --git a/raptor-http/src/main.rs b/raptor-http/src/main.rs index 059008533..fd14f5bb7 100644 --- a/raptor-http/src/main.rs +++ b/raptor-http/src/main.rs @@ -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)); }