message: apply cors settings to non-compressed filter on RPC server
diff: use std::{convert::Infallible, time::Duration};
  use futures::future;
  -use http::{Response, StatusCode};
  +use http::{header::CONTENT_TYPE, Method, Response, StatusCode};
  use hyper::{
  server::{conn::AddrIncoming, Builder},
  Body,
  @@ -113,14 +113,19 @@ pub(super) async fn run<REv: ReactorEventT>(
  .or(rpc_get_chainspec)
  .or(rpc_query_global_state)
  .or(unknown_method)
  - .or(parse_failure);
  + .or(parse_failure)
  + .with(
  + warp::cors()
  + .allow_any_origin()
  + .allow_header(CONTENT_TYPE)
  + .allow_method(Method::POST),
  + );
  // Supports content negotiation for gzip responses. This is an interim fix until
  // https://github.com/seanmonstar/warp/pull/513 moves forward.
  let service_routes_gzip = warp::header::exact("accept-encoding", "gzip")
  .and(service_routes.clone())
  - .with(warp::compression::gzip())
  - .with(warp::cors().allow_any_origin());
  + .with(warp::compression::gzip());
  // TODO - we can't catch cases where we should return `warp_json_rpc::Error::INVALID_REQUEST`
  // (i.e. where the request is JSON, but not valid JSON-RPC). This will require an
  