spring-framework / org.springframework.web.servlet.config / MvcNamespaceUtils / registerCorsConfigurations

registerCorsConfigurations

open static fun registerCorsConfigurations(@Nullable corsConfigurations: MutableMap<String, CorsConfiguration>, context: ParserContext, @Nullable source: Any): RuntimeBeanReference

Registers a Map<String, CorsConfiguration> (mapped CorsConfigurations) under a well-known name unless already registered. The bean definition may be updated if a non-null CORS configuration is provided.

Return
a RuntimeBeanReference to this Map<String, CorsConfiguration> instance