springio-2022-securing-spas-with-spring
springio-2022-securing-spas-with-spring copied to clipboard
Cors problem
When I clone this repository and run all the modules, there is CORS problem on the inbox page :

I tried to add to BffSecurityConfiguration
@Bean CorsConfigurationSource corsConfigurationSource() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration config = new CorsConfiguration(); config.addAllowedHeader("*"); config.addAllowedMethod("*"); config.addAllowedOrigin("http://localhost:4200"); config.setAllowCredentials(Boolean.TRUE); source.registerCorsConfiguration("/**", config); return source; }
but I have another CORS error
