@@ -71,7 +71,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
7171 )
7272 .authorizeHttpRequests (auth -> auth
7373 // 인증 필요 없는 엔드포인트
74- .requestMatchers ("/api/auth/**" , "/api/user/register" ).permitAll ()
74+ .requestMatchers ("/api/auth/**" , "/api/user/register" , "/api/user/privacy-agreement/**" ).permitAll ()
7575
7676 // LEADER 전용 API (팀 관리)
7777 .requestMatchers ("/api/team/**" ).hasAnyRole ("LEADER" , "MEMBER" )
@@ -92,7 +92,13 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
9292 @ Bean
9393 public CorsConfigurationSource corsConfigurationSource () {
9494 CorsConfiguration config = new CorsConfiguration ();
95- config .setAllowedOrigins (List .of ("http://localhost:3000" , "http://localhost:5173" , "http://127.0.0.1:3000" , "http://127.0.0.1:5173" )); // 개발용 origin들
95+ config .setAllowedOrigins (List .of (
96+ "http://localhost:3000" ,
97+ "http://localhost:5173" ,
98+ "http://127.0.0.1:3000" ,
99+ "http://127.0.0.1:5173" ,
100+ "http://3.39.54.128:8080" // 실제 서버 IP로 변경 필요
101+ ));
96102 config .setAllowedMethods (List .of ("GET" , "POST" , "PUT" , "DELETE" , "OPTIONS" ));
97103 config .setAllowedHeaders (List .of ("*" ));
98104 config .setAllowCredentials (true ); // 쿠키 허용
0 commit comments