private static boolean isPathMatched(CorsPolicy policy, RoutingContext routingContext) {
        final List<Route> routes = policy.routes();
        // We do not consider the score of the routing result for simplicity. It'd be enough to find
        // whether the path is matched or not.
        return routes.isEmpty() ||
               routes.stream().anyMatch(route -> route.apply(routingContext, false).isPresent());
    }
Returns the policy for the specified {@code origin}.

@return {@link CorsPolicy} which allows the {@code origin},
        {@code null} if the {@code origin} is {@code null} or not allowed in any policy.
core/src/main/java/com/linecorp/armeria/server/cors/CorsConfig.java