Skip to content

Commit fc3d9f0

Browse files
authored
Merge pull request #188 from prgrms-web-devcourse-final-project/setting/prod-application-yml(WR9-110)
fix: domain 주소 설정 (WR9-110)
2 parents 449bde7 + de80094 commit fc3d9f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/io/crops/warmletter/domain/auth/service/AuthService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public TokenResponse reissue(String refreshToken, HttpServletResponse response)
7272
.httpOnly(true) // JavaScript에서 쿠키에 접근할 수 없도록 설정
7373
.secure(true) // HTTPS에서만 쿠키가 전송되도록 설정
7474
.sameSite("None") // 크로스 도메인 요청 허용
75-
.domain("serverDomain")
75+
.domain(serverDomain)
7676
.path("/") // 쿠키가 유효한 경로 설정
7777
.maxAge(Duration.ofDays(14)) // 쿠키의 유효기간 설정 (14일)
7878
.build();

src/main/java/io/crops/warmletter/global/oauth/handler/OAuth2AuthenticationSuccessHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
4545
.httpOnly(true) // JavaScript에서 쿠키에 접근할 수 없도록 설정
4646
.secure(true) // HTTPS에서만 쿠키가 전송되도록 설정
4747
.sameSite("None") // 크로스 도메인 요청 허용
48-
.domain("serverDomain")
48+
.domain(serverDomain)
4949
.path("/") // 쿠키가 유효한 경로 설정
5050
.maxAge(Duration.ofDays(14)) // 쿠키의 유효기간 설정 (14일)
5151
.build();

0 commit comments

Comments
 (0)