Skip to content

Commit

Permalink
feat: Cors 설정에 HTTP OPTIONS 메서드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
khabh committed Jul 24, 2024
1 parent 6800541 commit bad8d31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(allowedOrigins)
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*")
.maxAge(maxAge);
}
Expand Down

0 comments on commit bad8d31

Please sign in to comment.