quick question is this a good place to ask about s...
# server
s
quick question is this a good place to ask about springboot cors configuration? i am trying to upgrade my corsConfig https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter I updated my config as such
Copy code
@Configuration
@EnableWebSecurity
open class CorsConfig{

  @Bean
  open fun springSecurityFilterChain(http: HttpSecurity): SecurityFilterChain {
    http
      .cors()
      .and()
      .csrf().disable()
    return http.build()
  }

  @Bean
  open fun corsConfigurationSource(): CorsConfigurationSource {
    val configuration = CorsConfiguration()
    configuration.allowedOrigins = listOf("*")
    configuration.allowedMethods = listOf("*")
    configuration.allowedHeaders = listOf("*")
    val source = UrlBasedCorsConfigurationSource()
    source.registerCorsConfiguration("/**", configuration)
    return source
  }
}
but application starts properly but when i call the base endpoint i get a 500 error and i dont know where to go to debug please advice
­čśÂ 7