class WebMvcCorsConfiguration {
        @Bean
        public org.springframework.web.filter.CorsFilter corsFilter(CorsProperties corsProperties) {<FILL_FUNCTION_BODY>}
    }

            UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource();

            Optional.ofNullable(corsProperties.getConfigs())
                    .orElseGet(()->Collections.singletonList(new CorsProperties.CorsConfiguration().applyPermitDefaultValues()))
                    .forEach((config) ->
                            corsConfigurationSource.registerCorsConfiguration(config.getPath(), buildConfiguration(config))
                    );

            return new org.springframework.web.filter.CorsFilter(corsConfigurationSource);
        
<no_super_class>