Example usage for org.springframework.web.cors CorsConfiguration checkOrigin

List of usage examples for org.springframework.web.cors CorsConfiguration checkOrigin

Introduction

In this page you can find the example usage for org.springframework.web.cors CorsConfiguration checkOrigin.

Prototype

@Nullable
public String checkOrigin(@Nullable String requestOrigin) 

Source Link

Document

Check the origin of the request against the configured allowed origins.

Usage

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);
}