static String toString(Object obj, boolean anyOriginSupported, boolean shortCircuit,
                           List<CorsPolicy> policies) {
        return MoreObjects.toStringHelper(obj)
                          .add("policies", policies)
                          .add("shortCircuit", shortCircuit)
                          .add("anyOriginSupported", anyOriginSupported)
                          .toString();
    }
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