private static void echoCorsRequestOrigin(HttpRequest request, HttpHeadersBuilder headers) {
        final String origin = request.headers().get(HttpHeaderNames.ORIGIN);
        if (origin != null) {
            setCorsOrigin(headers, origin);
        }
    }
Sets origin header according to the given CORS configuration and HTTP request.

@param request the HTTP request
@param headers the HTTP headers to modify

@return {@code policy} if CORS configuration matches, otherwise {@code null}
core/src/main/java/com/linecorp/armeria/internal/server/CorsHeaderUtil.java