fn cors() -> BoxedFilter<(impl warp::Reply,)> {
    // TODO replace this once a blessed implementation is released by warp
    warp::options()
        .and(warp::header::<String>("origin"))
        .map(|_origin: String| {
            let with_header = warp::reply::with_header(warp::reply(), "vary", "origin");
            let with_header = warp::reply::with_header(with_header, "Access-Control-Allow-Headers", "content-type");

            with_header
        })
        .boxed()
}
/// sort of a fake cors implementation.
sort of a fake cors implementation.
sort of a fake cors implementation .
fn cors() -> BoxedFilter<(impl warp::Reply,)> {
    // TODO replace this once a blessed implementation is released by warp
    warp::options()
        .and(warp::header::<String>("origin"))
        .map(|_origin: String| {
            let with_header = warp::reply::with_header(warp::reply(), "vary", "origin");
            let with_header = warp::reply::with_header(with_header, "Access-Control-Allow-Headers", "content-type");
            with_header
        })
        .boxed()
}
fn cors ( ) -> BoxedFilter < ( impl warp :: Reply , ) > { // TODO replace this once a blessed implementation is released by warp warp :: options ( ) . and ( warp :: header :: < String > ( " " ) ) . map ( | _origin : String | { let with_header = warp :: reply :: with_header ( warp :: reply ( ) , " " , " " ) ; let with_header = warp :: reply :: with_header ( with_header , " " , " " ) ; with_header } ) . boxed ( ) }
sort of a fake cors implementation.
sort of a fake cors implementation .