Skip to content

Commit d6e4e01

Browse files
committed
FE 개발 테스트를 위해 CORS 확장
1 parent b0a30c5 commit d6e4e01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/rightmark/global/config/CorsConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public CorsConfigurationSource corsConfigurationSource() {
1919
config.setAllowedOrigins(List.of("http://localhost:3000", "http://localhost:5173", "http://localhost:8000",
2020
"http://localhost:5500", "http://127.0.0.1:5500", "http://127.0.0.1:3000", "http://127.0.0.1:5173",
2121
"http://127.0.0.1:8000", "https://api.rightmarks.site", "https://www.rightmarks.site",
22-
"https://2025-seasonthon-team-91-fe.vercel.app", "https://2025-seasonthon-team-91-2ig533n1p-damins-projects-cc97364e.vercel.app")); // 허용할 출처 설정
22+
"https://2025-seasonthon-team-91-fe.vercel.app")); // 허용할 출처 설정
23+
config.setAllowedOriginPatterns(List.of("https://*.vercel.app"));
2324
config.setAllowedMethods(List.of("GET", "POST", "PATCH", "PUT", "DELETE", "OPTIONS")); // 메서드 허용
2425
config.setAllowedHeaders(List.of("*")); // 클라이언트가 보낼 수 있는 헤더
2526
config.setExposedHeaders(List.of("Authorization")); // 클라이언트(브라우저)가 접근할 수 있는 헤더 지정

0 commit comments

Comments
 (0)