Skip to content

Commit

Permalink
feat: cors 경로 매핑 모든 경로로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmen committed Jul 31, 2024
1 parent 39c2eae commit 45bc2f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
class WebConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry
.addMapping("/api/**")
.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://cs-ai-interviewer-web.vercel.app", "https://cs-ai.jxmen.dev")
.allowCredentials(true)
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS")
Expand Down

0 comments on commit 45bc2f8

Please sign in to comment.