https://kotlinlang.org logo
Title
u

user

07/04/2022, 7:31 AM
How to configure SPRING-SECURITY default /admin and /login CORS with different ORIGIN? I have my frontend application localhost:3000 and my SPRING backend server localhost:8080. I have some REST Controllers and they do work perfectly fine. I have this configuration which enables CORS, so localhost:3000 (front) can call localhost:8080 (back). @EnableWebSecurity class WebSecurityConfiguration( private val myUserDetailsService: MyUserDetailsService, private val passwordEncoderAndMatcher: PasswordEncoder, ) : WebSecurityConfigurerAdapter() { override fun...