Skip to content

Commit

Permalink
Merge pull request #287 from TEAM-MODDY/develop
Browse files Browse the repository at this point in the history
[hotfix] : CORS preflight OPTIONS 추가
  • Loading branch information
hellozo0 authored Nov 7, 2024
2 parents 5ba284d + 24e88fa commit 5052771
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 5052771

Please sign in to comment.