static String toString(Object obj, @Nullable Set<String> origins, List<Route> routes,
                           boolean nullOriginAllowed, boolean credentialsAllowed,
                           long maxAge, @Nullable Set<AsciiString> exposedHeaders,
                           @Nullable Set<HttpMethod> allowedRequestMethods,
                           boolean allowAllRequestHeaders,
                           @Nullable Set<AsciiString> allowedRequestHeaders,
                           @Nullable Map<AsciiString, Supplier<?>> preflightResponseHeaders) {
        return MoreObjects.toStringHelper(obj)
                          .omitNullValues()
                          .add("origins", origins)
                          .add("routes", routes)
                          .add("nullOriginAllowed", nullOriginAllowed)
                          .add("credentialsAllowed", credentialsAllowed)
                          .add("maxAge", maxAge)
                          .add("exposedHeaders", exposedHeaders)
                          .add("allowedRequestMethods", allowedRequestMethods)
                          .add("allowAllRequestHeaders", allowAllRequestHeaders)
                          .add("allowedRequestHeaders", allowedRequestHeaders)
                          .add("preflightResponseHeaders", preflightResponseHeaders).toString();
    }
Determines whether all request headers are allowed.

@return true if all request headers are allowed,
        false if only specific request headers are allowed.
core/src/main/java/com/linecorp/armeria/server/cors/CorsPolicy.java