Skip to content

Commit

Permalink
Merge pull request #220 from 1223v/test
Browse files Browse the repository at this point in the history
Fix: cookie 도메인 삭제
  • Loading branch information
1223v authored Mar 24, 2024
2 parents 08ab8b9 + 6225c01 commit 2573eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class JwtConfig {
private final String refreshTokenName;
private final String userFrontendUrl;
private final String guestFrontendUrl;
private final String cookieDomain;
private final Algorithm algorithm;

public static final String ACCESS_TOKEN_SUBJECT = "AccessToken";
Expand All @@ -35,8 +34,8 @@ public JwtConfig(
@Value("${jwt.access.cookie}") String accessTokenName,
@Value("${jwt.refresh.cookie}") String refreshTokenName,
@Value("${jwt.redirect-uri-user}") String userFrontendUrl,
@Value("${jwt.redirect-uri-guest}") String guestFrontendUrl,
@Value("${jwt.cookie.domain}") String cookieDomain
@Value("${jwt.redirect-uri-guest}") String guestFrontendUrl

) {
this.secretKey = secretKey;
this.accessTokenExpirationPeriod = accessTokenExpirationPeriod;
Expand All @@ -45,7 +44,6 @@ public JwtConfig(
this.refreshTokenName = refreshTokenName;
this.userFrontendUrl = userFrontendUrl;
this.guestFrontendUrl = guestFrontendUrl;
this.cookieDomain = cookieDomain;
this.algorithm = initializeAlgorithm(secretKey);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public void addTokenCookie(HttpServletResponse response, String name, String val
Cookie cookie = new Cookie(name, value);
cookie.setHttpOnly(httpOnly);
cookie.setPath(path);
//cookie.setDomain(jwtConfig.getCookieDomain());
cookie.setMaxAge(maxAge);
response.addCookie(cookie);

Expand Down

0 comments on commit 2573eaa

Please sign in to comment.