public final CorsPolicy build() {
        return new CorsPolicy(origins, originPredicate, routes, credentialsAllowed, maxAge,
                              nullOriginAllowed, exposedHeaders, allowAllRequestHeaders, allowedRequestHeaders,
                              allowedRequestMethods, preflightResponseHeadersDisabled,
                              preflightResponseHeaders);
    }
Returns a newly-created {@link CorsPolicy} based on the properties of this builder.
core/src/main/java/com/linecorp/armeria/server/cors/AbstractCorsPolicyBuilder.java