Skip to content

Commit f5ba176

Browse files
committed
feat[corsConfiguration]: 운영 서버 도메인에 대한 cors 설정 추가
1 parent 3374cce commit f5ba176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/main/java/com/ai/lawyer/global/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public PasswordEncoder passwordEncoder() {
6060
@Bean
6161
public CorsConfigurationSource corsConfigurationSource() {
6262
CorsConfiguration configuration = new CorsConfiguration();
63-
configuration.setAllowedOrigins(List.of("http://localhost:3000"));
63+
configuration.setAllowedOrigins(List.of("http://localhost:3000, https://www.trybalaw.com"));
6464
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
6565
configuration.setAllowedHeaders(List.of("*"));
6666
configuration.setAllowCredentials(true);

0 commit comments

Comments
 (0)