Shoc.Webgtw/src/main/java/io/imast/shoc/webgtw/config/WebFluxConfig.java
/**
     * The CORS Web Filter
     * 
     * @return Returns the web filter
     */
The CORS Web Filter

@return Returns the web filter
The CORS Web Filter @return Returns the web filter
@Bean
    public CorsWebFilter corsWebFilter() {
        CorsConfiguration corsConfiguration = new CorsConfiguration();
        corsConfiguration.setAllowCredentials(true);
        corsConfiguration.addAllowedHeader("*");
        corsConfiguration.addAllowedMethod("*");
        corsConfiguration.addAllowedOrigin("*");
        UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource();
        corsConfigurationSource.registerCorsConfiguration("/**", corsConfiguration);
        return new CorsWebFilter(corsConfigurationSource);
    }
@ Bean public CorsWebFilter corsWebFilter ( ) { CorsConfiguration corsConfiguration = new CorsConfiguration ( ) ; corsConfiguration . setAllowCredentials ( true ) ; corsConfiguration . addAllowedHeader ( "*" ) ; corsConfiguration . addAllowedMethod ( "*" ) ; corsConfiguration . addAllowedOrigin ( "*" ) ; UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource ( ) ; corsConfigurationSource . registerCorsConfiguration ( "/**" , corsConfiguration ) ; return new CorsWebFilter ( corsConfigurationSource ) ; }
The CORS Web Filter
The CORS Web Filter