Skip to content

Commit

Permalink
#541 [release] 1.1.2 릴리즈
Browse files Browse the repository at this point in the history
#541 [release] 1.1.2 릴리즈
  • Loading branch information
sohyundoh authored Oct 19, 2024
2 parents 096b485 + 0f76e3c commit 2b1c972
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class JwtTokenProvider {
private final ObjectMapper objectMapper;
private static final String MEMBER_ID = "memberId";
private static final String JOINED_ROLE = "joinedRole";
private static final Long ACCESS_TOKEN_EXPIRATION_TIME = 4 * 60 * 60 * 1000L;
private static final Long REFRESH_TOKEN_EXPIRATION_TIME = 60 * 60 * 24 * 1000L * 14;
private static final Long ACCESS_TOKEN_EXPIRATION_TIME = 48 * 60 * 60 * 1000L;
private static final Long REFRESH_TOKEN_EXPIRATION_TIME = 60 * 60 * 24 * 1000L * 30;

@Value("${jwt.secret}")
private String JWT_SECRET;
Expand Down
5 changes: 4 additions & 1 deletion module-api/src/main/java/com/mile/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class WebConfig implements WebMvcConfigurer {
@Value("${client.local}")
private String clientLocal;

@Value("${client.develop}")
private String clientDevelop;

@Value("${client.deploy}")
private String clientDeploy;

Expand All @@ -52,7 +55,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(clientLocal, clientDeploy, serverLocalSet1, serverLocalSet2, serverDevelop, serverDeploy)
.allowedOrigins(clientLocal, clientDeploy, serverLocalSet1, serverLocalSet2, serverDevelop, serverDeploy, clientDevelop)
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS")
.allowCredentials(true)
.maxAge(3000);
Expand Down

0 comments on commit 2b1c972

Please sign in to comment.