Skip to content

Commit

Permalink
Merge pull request #147 from prgrms-web-devcourse-final-project/develop
Browse files Browse the repository at this point in the history
web config 설정 변경
  • Loading branch information
rinklove authored Jan 21, 2025
2 parents ea60687 + 3435ec0 commit c25e850
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions RevUp-common/src/main/java/com/revup/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,16 @@ public CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedHeaders(List.of(
"Authorization", // 인증 관련 헤더
"Content-Type", // 요청 데이터 타입
"Accept", // 응답 데이터 타입
"X-Requested-With", // AJAX 요청 확인
"Origin", // 요청 도메인
"Referer", // 참조 페이지
"User-Agent" // 클라이언트 정보
"Cookie"
));
configuration.setAllowCredentials(true);

// 필요한 헤더만 노출
configuration.setExposedHeaders(List.of(
// "Authorization-refresh",
// "Authorization",
// "Set-Cookie",
"Set-Cookie",
"Cookie"
));

Expand Down

0 comments on commit c25e850

Please sign in to comment.