类 CorsRegistry
java.lang.Object
cn.taketoday.web.config.CorsRegistry
Assists with the registration of global, URL pattern based
CorsConfiguration mappings.- 从以下版本开始:
- 4.0 2022/2/15 17:27
- 作者:
- Sebastien Deleuze, Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addMapping(String pathPattern) Enable cross-origin request handling for the specified path pattern.protected Map<String,CorsConfiguration> Return the registeredCorsConfigurationobjects, keyed by path pattern.
-
字段详细资料
-
registrations
-
-
构造器详细资料
-
CorsRegistry
public CorsRegistry()
-
-
方法详细资料
-
addMapping
Enable cross-origin request handling for the specified path pattern.Exact path mapping URIs (such as
"/admin") are supported as well as Ant-style path patterns (such as"/admin/**").By default, the
CorsConfigurationfor this mapping is initialized with default values as described inCorsConfiguration.applyPermitDefaultValues(). -
getCorsConfigurations
Return the registeredCorsConfigurationobjects, keyed by path pattern.
-