This commit is contained in:
William Brawner 2020-02-14 21:51:01 -07:00
parent 71d4daf6a6
commit 57b388da05

View file

@ -2,7 +2,6 @@ package com.wbrawner.budgetserver.config
import com.wbrawner.budgetserver.passwordresetrequest.PasswordResetRequestRepository
import com.wbrawner.budgetserver.user.UserRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.env.Environment
@ -81,8 +80,5 @@ open class MethodSecurity : GlobalMethodSecurityConfiguration()
open class CorsConfiguration : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedMethods("*")
.allowedHeaders("*")
.allowedOrigins("*")
}
}