Skip to content

Commit

Permalink
Merge pull request #143 from prgrms-web-devcourse-final-project/develop
Browse files Browse the repository at this point in the history
webconfig 설정 변경
  • Loading branch information
rinklove authored Jan 21, 2025
2 parents aabe2c1 + fe6a389 commit 7560fc0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions RevUp-common/src/main/java/com/revup/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,16 @@ public CorsConfigurationSource corsConfigurationSource() {
"http://localhost:3000"
));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
// 허용할 요청 헤더 설정
configuration.setAllowedHeaders(List.of("*"));
// // 허용할 요청 헤더 설정
// configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);

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

UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Expand Down

0 comments on commit 7560fc0

Please sign in to comment.