Skip to content

Commit

Permalink
settings: cors cookie 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pjm2571 committed Oct 22, 2024
1 parent a066496 commit 1fb3a50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public SecurityFilterChain filterchain(HttpSecurity http) throws Exception {

// 클라이언트에서 접근 가능한 헤더 설정
config.setExposedHeaders(
Arrays.asList("Authorization", "Cache-Control", "Content-Type"));
Arrays.asList("Authorization", "Cache-Control", "Content-Type", "Set-Cookie"));

// 프리플라이트 요청의 캐싱 시간 설정 (1시간)
config.setMaxAge(60 * 60L);
Expand Down

0 comments on commit 1fb3a50

Please sign in to comment.