public static CorsServiceBuilder builder(Iterable<String> origins) {
        requireNonNull(origins, "origins");
        final List<String> copied = ImmutableList.copyOf(origins);
        if (copied.contains(CorsHeaderUtil.ANY_ORIGIN)) {
            if (copied.size() > 1) {
                logger.warn("Any origin (*) has been already included. Other origins ({}) will be ignored.",
                            copied.stream()
                                  .filter(c -> !CorsHeaderUtil.ANY_ORIGIN.equals(c))
                                  .collect(Collectors.joining(",")));
            }
            return builderForAnyOrigin();
        }
        return new CorsServiceBuilder(copied);
    }
Returns a new {@link CorsServiceBuilder} with the specified {@code origins}.
core/src/main/java/com/linecorp/armeria/server/cors/CorsService.java