Skip to content

Commit 1c25997

Browse files
authored
Merge pull request #291 from TEAM-MODDY/fix/#290
[fix] 특정 cors 에러를 잡기 위한 조치
2 parents 24e88fa + c36f695 commit 1c25997

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
@@ -20,7 +20,7 @@ public class WebConfig implements WebMvcConfigurer {
2020
@Override
2121
public void addCorsMappings(final CorsRegistry registry) {
2222
registry.addMapping("/**")
23-
.allowedOriginPatterns("*")
23+
.allowedOriginPatterns("http://localhost:5173", "http://localhost:8080", "https://www.moddy.kr", "https://api.moddy.kr", "https://dev.moddy.kr")
2424
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name())
2525
.allowedHeaders("Authorization", "Content-Type")
2626
.allowCredentials(true)

0 commit comments

Comments
 (0)