Skip to content

Commit 24e88fa

Browse files
committed
[hotfix] : CORS preflight OPTIONS 추가
1 parent 5ba284d commit 24e88fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/moddy/server/config/WebConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class WebConfig implements WebMvcConfigurer {
2121
public void addCorsMappings(final CorsRegistry registry) {
2222
registry.addMapping("/**")
2323
.allowedOriginPatterns("*")
24-
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name())
24+
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name())
2525
.allowedHeaders("Authorization", "Content-Type")
2626
.allowCredentials(true)
2727
.maxAge(3000);

0 commit comments

Comments
 (0)