public class CorsConfiguration {
/**
* Wildcard representing <em>all</em> origins, methods, or headers. */ public static final String ALL = "*";private static final List<HttpMethod> DEFAULT_METHODS;
static {
List<HttpMethod> rawMethods = new ArrayList<HttpMethod>(2); rawMethods.add(HttpMethod.GET); rawMethods.add(HttpMethod.HEAD); DEFAULT_METHODS = Collections.unmodifiableList(rawMethods); }