Skip to content

Commit a8c01f5

Browse files
committed
update
1 parent 8ca5177 commit a8c01f5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/deploy-backend.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ jobs:
6464
docker compose build
6565
docker compose up -d
6666
67-

src/main/java/com/ccapp/ccgo/common/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
7777
@Bean
7878
public CorsConfigurationSource corsConfigurationSource() {
7979
CorsConfiguration config = new CorsConfiguration();
80-
config.setAllowedOrigins(List.of("http://192.168.29.245:8080")); // 서비스 IP주소
80+
config.setAllowedOrigins(List.of("*")); // 모든 origin 허용 (개발용)
8181
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
8282
config.setAllowedHeaders(List.of("*"));
83-
config.setAllowCredentials(true);
83+
config.setAllowCredentials(false); // allowCredentials가 true면 allowedOrigins에 "*" 사용 불가
8484
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
8585
source.registerCorsConfiguration("/**", config);
8686
return source;

0 commit comments

Comments
 (0)