List of usage examples for org.springframework.web.cors CorsConfiguration checkOrigin
@Nullable
public String checkOrigin(@Nullable String requestOrigin)
From source file:org.springframework.web.cors.DefaultCorsProcessor.java
/** * Check the origin and determine the origin for the response. The default * implementation simply delegates to//from w w w . j a v a 2s. c o m * {@link org.springframework.web.cors.CorsConfiguration#checkOrigin(String)}. */ @Nullable protected String checkOrigin(CorsConfiguration config, @Nullable String requestOrigin) { return config.checkOrigin(requestOrigin); }