List of usage examples for org.springframework.web.cors CorsConfiguration checkHttpMethod
@Nullable
public List<HttpMethod> checkHttpMethod(@Nullable HttpMethod requestMethod)
From source file:org.springframework.web.cors.DefaultCorsProcessor.java
/** * Check the HTTP method and determine the methods for the response of a * pre-flight request. The default implementation simply delegates to * {@link org.springframework.web.cors.CorsConfiguration#checkOrigin(String)}. *//*from w w w. j a va 2s. com*/ @Nullable protected List<HttpMethod> checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) { return config.checkHttpMethod(requestMethod); }