Revert "Remove CORS"

This reverts commit 10f3a98c
This commit is contained in:
William Brawner 2020-02-14 21:43:34 -07:00
parent 98ca7bccca
commit 71d4daf6a6

View file

@ -2,6 +2,7 @@ package com.wbrawner.budgetserver.config
import com.wbrawner.budgetserver.passwordresetrequest.PasswordResetRequestRepository import com.wbrawner.budgetserver.passwordresetrequest.PasswordResetRequestRepository
import com.wbrawner.budgetserver.user.UserRepository import com.wbrawner.budgetserver.user.UserRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Configuration
import org.springframework.core.env.Environment import org.springframework.core.env.Environment
@ -64,6 +65,8 @@ open class SecurityConfig(
.and() .and()
.httpBasic() .httpBasic()
.and() .and()
.cors()
.and()
.csrf() .csrf()
.disable() .disable()
} }