Skip to content

Commit 71d2263

Browse files
authored
fix/OPS-402: CORS 운영에 맞게 설정. (#181)
1 parent 62968cb commit 71d2263

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/tuna/zoopzoop/backend/global/security/SecurityConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ public class WebConfig implements WebMvcConfigurer {
8181
@Override
8282
public void addCorsMappings(CorsRegistry registry) {
8383
registry.addMapping("/api/v1/**")
84-
.allowedOrigins("*") // 실제 배포시엔 chrome-extension://<EXTENSION_ID> 로 제한 권장
84+
.allowedOrigins("https://www.zoopzoop.kro.kr")
8585
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
86-
.allowedHeaders("*");
86+
.allowedHeaders("*")
87+
.allowCredentials(true);
8788
}
8889
}
8990
}

0 commit comments

Comments
 (0)