Skip to content

Commit

Permalink
[hotfix] : CORS preflight OPTIONS 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozo0 committed Oct 18, 2024
1 parent 5ba284d commit 24e88fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/moddy/server/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*")
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name())
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name())
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true)
.maxAge(3000);
Expand Down

0 comments on commit 24e88fa

Please sign in to comment.