Skip to content

Commit

Permalink
Remove duplicated CORS config logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mkSpace committed Dec 20, 2023
1 parent 6dc8a90 commit 6074101
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.whatever.raisedragon.config
import com.whatever.raisedragon.security.resolver.UserInfoArgumentResolver
import org.springframework.context.annotation.Configuration
import org.springframework.web.method.support.HandlerMethodArgumentResolver
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.EnableWebMvc
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

Expand All @@ -14,13 +13,4 @@ class WebConfigurer : WebMvcConfigurer {
override fun addArgumentResolvers(resolvers: MutableList<HandlerMethodArgumentResolver>) {
resolvers.add(UserInfoArgumentResolver())
}

// override fun addCorsMappings(registry: CorsRegistry) {
// registry.addMapping("/**")
// .allowedOrigins("/**")
// .allowedMethods("GET", "POST", "PUT", "DELETE")
// .allowedHeaders("Origin", "Content-Type", "Accept", "Authorization")
// .allowCredentials(true)
// .maxAge(3600)
// }
}

0 comments on commit 6074101

Please sign in to comment.