We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e56ce76 commit d66f9bdCopy full SHA for d66f9bd
1 file changed
src/main/java/com/wedvice/security/SecurityConfig.java
@@ -116,6 +116,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
116
}
117
118
119
+
120
// ✅ 리다이렉션 쿠키 삭제
121
ResponseCookie deleteCookie = ResponseCookie.from("loginRedirectUrl", "")
122
.path("/")
@@ -159,7 +160,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
159
160
161
// ✅ 리다이렉트 처리
162
String host = request.getHeader("Host");
-
163
+ // ✅ 쿼리스트링에 accessToken만 추가 (로컬일 때만)
164
+ if (isLocalhost) {
165
+ redirectUrl += "?accessToken=" + accessToken;
166
+ }
167
log.info("[success] host {}", host);
168
log.info("[success] redirectUrl {}", redirectUrl);
169
response.sendRedirect(redirectUrl);
0 commit comments