aarbit 2e4bbbd810
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Removes breaking and unneeded config annotation
2025-09-30 00:20:26 -05:00

20 lines
621 B
Kotlin

package net.halfbinary.tmnt.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration(proxyBeanMethods = false)
class MyCorsConfiguration {
@Bean
fun corsConfigurer(): WebMvcConfigurer {
return object : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
}
}
}
}