Skip to content

Commit 2e74683

Browse files
authored
Merge pull request #104 from MT-TEAM-Org/fix/social-login
fix: 코드 원복
2 parents 6d2d12a + 39c2462 commit 2e74683

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/main/java/org/myteam/server/global/security/config/SecurityConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
148148
new JwtAuthenticationFilter(authenticationManager(), jwtProvider, refreshJpaRepository),
149149
UsernamePasswordAuthenticationFilter.class
150150
)
151-
.addFilterAfter(new TokenAuthenticationFilter(jwtProvider), JwtAuthenticationFilter.class)
152-
.addFilter(webConfig.corsFilter()); // CORS 필터 추가
151+
.addFilterAfter(new TokenAuthenticationFilter(jwtProvider), JwtAuthenticationFilter.class);
152+
// .addFilter(webConfig.corsFilter()); // CORS 필터 추가
153153

154154
// // cors 설정
155-
// http.cors((corsCustomizer) -> corsCustomizer.configurationSource(configurationSource()));
155+
http.cors((corsCustomizer) -> corsCustomizer.configurationSource(configurationSource()));
156156

157157
// 예외 처리 핸들러 설정
158158
http.exceptionHandling(exceptionHandling -> exceptionHandling

src/main/java/org/myteam/server/global/util/cookie/CookieUtil.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ public static Cookie createCookie(String key, String value, String path, int max
2323
Cookie cookie = new Cookie(key, value);
2424
cookie.setMaxAge(maxAge);
2525
// cookie.setSecure(isSecure); // Secure 설정 여부 (HTTPS에서만 사용)
26-
cookie.setSecure(false);
27-
cookie.setPath("/");
26+
cookie.setPath(path);
2827
cookie.setHttpOnly(isHttpOnly);
29-
cookie.setDomain("52.79.222.87");
30-
// if (domain != null) {
31-
// // ex) playhive.shop
32-
// cookie.setDomain(domain);
33-
// }
28+
if (domain != null) {
29+
// ex) playhive.shop
30+
cookie.setDomain(domain);
31+
}
3432
return cookie;
3533
}
3634

0 commit comments

Comments
 (0)