Skip to content

Commit 5644654

Browse files
authored
cors 헤더 추가 (#144) (#145)
2 parents cb33efe + de8ed15 commit 5644654

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/umc/codeplay/config/WebConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void addCorsMappings(CorsRegistry registry) {
1717
.allowedOrigins("*") // 모든 출처로 부터 요청 허용 - TODO: 변경해야 함
1818
.allowedMethods(ALLOWED_METHOD_NAMES)
1919
.allowedHeaders("Content-Type", "Authorization")
20-
.maxAge(3600); // 캐싱 시간 설정
21-
// .exposedHeaders("Authorization") // 클라이언트가 접근할 수 있는 헤더
20+
.maxAge(3600) // 캐싱시간 설정
21+
.exposedHeaders("Authorization"); // 클라이언트가 접근할 수 있는 헤더
2222
}
2323
}

0 commit comments

Comments
 (0)