Skip to content

Commit e4f2f92

Browse files
committed
CORS 추가 설정
1 parent 465550d commit e4f2f92

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/src/main/java/_team/onmyway/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public CorsConfigurationSource corsConfigurationSource() {
8080

8181
configuration.addAllowedOrigin("http://localhost:3000");
8282
configuration.addAllowedOrigin("http://localhost:5173"); // Vite 기본 포트
83+
configuration.addAllowedOrigin("http://localhost:8081");
8384
configuration.addAllowedMethod("*");
8485
configuration.addAllowedHeader("*");
8586
configuration.setAllowCredentials(true); // 쿠키 사용(JWT refresh)

0 commit comments

Comments
 (0)